aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-20 19:19:26 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-20 19:19:26 -0500
commit6861af22eecfa4a254eb62245ee109d8e5635f93 (patch)
treedce2496221a4cb279a1038e7692bf78b07b32edd
parent52bb4a1bd60dfcaad99d1ac181d8a0372db9cc2b (diff)
downloadforums-6861af22eecfa4a254eb62245ee109d8e5635f93.tar
forums-6861af22eecfa4a254eb62245ee109d8e5635f93.tar.gz
forums-6861af22eecfa4a254eb62245ee109d8e5635f93.tar.bz2
forums-6861af22eecfa4a254eb62245ee109d8e5635f93.tar.xz
forums-6861af22eecfa4a254eb62245ee109d8e5635f93.zip
[ticket/11103] Message of no notifications if you have none
PHPBB3-11103
-rw-r--r--phpBB/language/en/common.php1
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html31
-rw-r--r--phpBB/styles/prosilver/template/ucp_notifications.html7
3 files changed, 26 insertions, 13 deletions
diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php
index 75c681e86a..f3c597af89 100644
--- a/phpBB/language/en/common.php
+++ b/phpBB/language/en/common.php
@@ -382,6 +382,7 @@ $lang = array_merge($lang, array(
'NEXT_STEP' => 'Next',
'NEVER' => 'Never',
'NO' => 'No',
+ 'NO_NOTIFICATIONS' => 'You have no notifications',
'NOT_ALLOWED_MANAGE_GROUP' => 'You are not allowed to manage this group.',
'NOT_AUTHORISED' => 'You are not authorised to access this area.',
'NOT_WATCHING_FORUM' => 'You are no longer subscribed to updates on this forum.',
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index 21a1fde7ea..5ec707dbcf 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -139,20 +139,25 @@
</div>
<ul>
+ <!-- IF not .notifications -->
+ <li>
+ {L_NO_NOTIFICATIONS}
+ </li>
+ <!-- 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 -->
- {notifications.AVATAR}
- <div>
- <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 -->
- </li>
+ <li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF -->">
+ <!-- IF notifications.URL --><a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"><!-- ENDIF -->
+ {notifications.AVATAR}
+ <div>
+ <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 -->
+ </li>
<!-- END notifications -->
</ul>
diff --git a/phpBB/styles/prosilver/template/ucp_notifications.html b/phpBB/styles/prosilver/template/ucp_notifications.html
index 728fe972b1..85edf4629b 100644
--- a/phpBB/styles/prosilver/template/ucp_notifications.html
+++ b/phpBB/styles/prosilver/template/ucp_notifications.html
@@ -70,6 +70,13 @@
<dd class="mark">{L_MARK_READ}</dd>
</dl>
</li>
+ <!-- IF not .notifications -->
+ <li>
+ <dl>
+ <dt>{L_NO_NOTIFICATIONS}</dt>
+ </dl>
+ </li>
+ <!-- ENDIF -->
<!-- BEGIN notification_list -->
<li class="row<!-- IF notification_list.UNREAD --> bg3<!-- ELSE --><!-- IF notification_list.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- ENDIF -->">
<dl>