mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
Merge branch '3.1.x' into 3.2.x
* 3.1.x: [ticket/14855] Update notification and PM alert bubbles [ticket/14855] Update notification and PM alert bubbles [ticket/14855] Update notification and PM alert bubbles
This commit is contained in:
commit
0cf85c047e
@ -132,9 +132,10 @@ phpbb.markNotifications = function($popup, unreadCount) {
|
||||
|
||||
// Update the unread count.
|
||||
$('strong', '#notification_list_button').html(unreadCount);
|
||||
// Remove the Mark all read link & notification count if there are no unread notifications.
|
||||
// Remove the Mark all read link and hide notification count if there are no unread notifications.
|
||||
if (!unreadCount) {
|
||||
$('#mark_all_notifications, #notification_list_button > strong').remove();
|
||||
$('#mark_all_notifications').remove();
|
||||
$('#notification_list_button > strong').addClass('hidden');
|
||||
}
|
||||
|
||||
// Update page title
|
||||
|
@ -145,14 +145,14 @@
|
||||
<!-- IF S_DISPLAY_PM -->
|
||||
<li class="rightside" data-skip-responsive="true">
|
||||
<a href="{U_PRIVATEMSGS}" role="menuitem">
|
||||
<i class="icon fa-inbox fa-fw" aria-hidden="true"></i><span>{L_PRIVATE_MESSAGES} <!-- IF PRIVATE_MESSAGE_COUNT --><strong class="badge">{PRIVATE_MESSAGE_COUNT}</strong><!-- ENDIF --></span>
|
||||
<i class="icon fa-inbox fa-fw" aria-hidden="true"></i><span>{L_PRIVATE_MESSAGES} </span><strong class="badge<!-- IF not PRIVATE_MESSAGE_COUNT --> hidden<!-- ENDIF -->">{PRIVATE_MESSAGE_COUNT}</strong>
|
||||
</a>
|
||||
</li>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_NOTIFICATIONS_DISPLAY -->
|
||||
<li class="dropdown-container dropdown-{S_CONTENT_FLOW_END} rightside" data-skip-responsive="true">
|
||||
<a href="{U_VIEW_ALL_NOTIFICATIONS}" id="notification_list_button" class="dropdown-trigger">
|
||||
<i class="icon fa-bell fa-fw" aria-hidden="true"></i><span>{L_NOTIFICATIONS} <!-- IF NOTIFICATIONS_COUNT --><strong class="badge">{NOTIFICATIONS_COUNT}</strong><!-- ENDIF --></span>
|
||||
<i class="icon fa-bell fa-fw" aria-hidden="true"></i><span>{L_NOTIFICATIONS} </span><strong class="badge<!-- IF not NOTIFICATIONS_COUNT --> hidden<!-- ENDIF -->">{NOTIFICATIONS_COUNT}</strong>
|
||||
</a>
|
||||
<!-- INCLUDE notification_dropdown.html -->
|
||||
</li>
|
||||
|
@ -1223,6 +1223,10 @@ ul.linklist:after,
|
||||
padding: 4px 6px;
|
||||
}
|
||||
|
||||
.badge.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Navbar specific list items
|
||||
----------------------------------------*/
|
||||
|
||||
|
@ -82,6 +82,7 @@ class phpbb_functional_notification_test extends phpbb_functional_test_case
|
||||
// Get form token
|
||||
$link = $crawler->selectLink($this->lang('NOTIFICATIONS_MARK_ALL_READ'))->link()->getUri();
|
||||
$crawler = self::request('GET', substr($link, strpos($link, 'ucp.')));
|
||||
$this->assertCount(0, $crawler->filter('#notification_list_button strong'));
|
||||
$this->assertCount(1, $crawler->filter('#notification_list_button strong.badge.hidden'));
|
||||
$this->assertEquals("0", $crawler->filter('#notification_list_button strong.badge.hidden')->text());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user