diff options
author | Cesar G <prototech91@gmail.com> | 2013-11-23 20:11:49 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-12-30 11:12:15 -0800 |
commit | f4b832a27d128ec84142dfe6133dc6ba96b8d3a9 (patch) | |
tree | 02716fb3c67019d8f4749faa7ce554334cff9fa5 /phpBB/styles/prosilver/template/overall_header.html | |
parent | be67124dc7d5461c9b085e4dc3f32ece87e4b1aa (diff) | |
download | forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.gz forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.bz2 forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.xz forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.zip |
[ticket/12034] AJAXify notifications popup.
PHPBB3-12034
Diffstat (limited to 'phpBB/styles/prosilver/template/overall_header.html')
-rw-r--r-- | phpBB/styles/prosilver/template/overall_header.html | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index e4e1b3443b..529e6625fe 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -107,7 +107,12 @@ <div class="dropdown-contents"> <div class="header"> {L_NOTIFICATIONS} - <span class="header_settings"><a href="{U_NOTIFICATION_SETTINGS}">{L_SETTINGS}</a></span> + <span class="header_settings"> + <a href="{U_NOTIFICATION_SETTINGS}">{L_SETTINGS}</a> + <!-- IF NOTIFICATIONS_COUNT --> + <span id="mark_all_notifications"> • <a href="{U_MARK_ALL_NOTIFICATIONS}" data-ajax="notification.mark_all_read">{L_MARK_ALL_READ}</a></span> + <!-- ENDIF --> + </span> </div> <ul> @@ -118,17 +123,18 @@ <!-- ENDIF --> <!-- BEGIN notifications --> <li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF -->"> - <!-- IF notifications.URL --><a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"><!-- ENDIF --> + <!-- IF notifications.URL --> + <a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}" data-real-url="{notifications.URL}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"> + <!-- ENDIF --> <!-- IF notifications.AVATAR -->{notifications.AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF --> <div class="notification_text"> <p>{notifications.FORMATTED_TITLE}</p> <p>» {notifications.TIME}</p> - - <!-- IF not notifications.URL and notifications.U_MARK_READ --> - <p><a href="{notifications.U_MARK_READ}">{L_MARK_READ}</a></p> - <!-- ENDIF --> </div> <!-- IF notifications.URL --></a><!-- ENDIF --> + <!-- IF notifications.UNREAD --> + <a href="{notifications.U_MARK_READ}" class="mark_read icon-mark" data-ajax="notification.mark_read" title="{L_MARK_READ}"></a> + <!-- ENDIF --> </li> <!-- END notifications --> </ul> |