diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-14 12:35:35 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-14 12:35:35 -0500 |
| commit | a48f09033810148fd9b2d5a0b6a683f14ac73a6a (patch) | |
| tree | cd4fa36aaff27b628f1607dec517c3321db1e9f3 /phpBB/styles/prosilver/template/overall_header.html | |
| parent | 716635c834dd2d6644f3d47c67f7184f95a35c0b (diff) | |
| download | forums-a48f09033810148fd9b2d5a0b6a683f14ac73a6a.tar forums-a48f09033810148fd9b2d5a0b6a683f14ac73a6a.tar.gz forums-a48f09033810148fd9b2d5a0b6a683f14ac73a6a.tar.bz2 forums-a48f09033810148fd9b2d5a0b6a683f14ac73a6a.tar.xz forums-a48f09033810148fd9b2d5a0b6a683f14ac73a6a.zip | |
[ticket/11103] Make sure notifications are marked read when clicking them
How do we do this? If an item is unread, the URL to view that item will
be the URL to mark it as read (index.php?mark_notification=$id). When the
URL is visited it marks the item as read and redirects them to the correct
URL for the item.
If the item is read, the URL is directly to the item.
Prettify the html output
PHPBB-11103
Diffstat (limited to 'phpBB/styles/prosilver/template/overall_header.html')
| -rw-r--r-- | phpBB/styles/prosilver/template/overall_header.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index e00ad555ff..20b98c6f8c 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -137,14 +137,15 @@ <ul class="topiclist forums"> <!-- BEGIN notifications --> <li class="row<!-- IF notifications.UNREAD --> bg2<!-- ENDIF -->"> - <!-- IF notifications.URL --><a href="{notifications.URL}"><!-- ENDIF --> - {notifications.AVATAR} - <div> - {notifications.FORMATTED_TITLE}<br /> - {notifications.TIME} - </div> + <!-- IF notifications.URL or notifications.U_MARK_READ --><a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"><!-- ENDIF --> + <span> + {notifications.AVATAR} + <span class="notification_title"> + {notifications.FORMATTED_TITLE} + <div class="notification_time">{notifications.TIME}</div> + </span> + </span> <!-- IF notifications.URL --></a><!-- ENDIF --> - <!-- IF notifications.UNREAD --><a href="{notifications.U_MARK_READ}" title="{L_MARK_READ}">{L_MARK_READ}</a><!-- ENDIF --> </li> <!-- END notifications --> </ul> |
