mirror of https://github.com/BOINC/boinc.git
Link notification bubble on Account menu item to message inbox page
(DBOINCP-170)
This commit is contained in:
parent
19a23d3dfb
commit
b19936cf80
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue