Link notification bubble on Account menu item to message inbox page

(DBOINCP-170)
This commit is contained in:
Tristan Olive 2015-06-09 10:56:11 -04:00
parent 19a23d3dfb
commit b19936cf80
2 changed files with 10 additions and 1 deletions

View File

@ -176,6 +176,14 @@ body {
#action-links a {
color: #222;
}
#navigation li a.compound {
display: inline-block;
padding-right: 1px;
}
#navigation li a.compound.secondary {
padding-left: 0;
padding-right: 12px;
}
#navigation li a .item-count-wrapper {
margin-left: 3px;
}

View File

@ -95,8 +95,9 @@ function boinc_links__system_main_menu($links, $menu, $element) {
if ($link['href'] == 'dashboard') {
$item_count = privatemsg_unread_count();
if ($item_count) {
$link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
$link['title'] .= '</a> <a href="/messages" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
$link['html'] = TRUE;
$link['attributes']['class'] = 'compound';
}
}
}