From b19936cf80998fb074d8f2e5d5cd3b3206918be9 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Tue, 9 Jun 2015 10:56:11 -0400 Subject: [PATCH] Link notification bubble on Account menu item to message inbox page (DBOINCP-170) --- .../sites/default/boinc/themes/boinc/css/layout-fixed.css | 8 ++++++++ drupal/sites/default/boinc/themes/boinc/template.php | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drupal/sites/default/boinc/themes/boinc/css/layout-fixed.css b/drupal/sites/default/boinc/themes/boinc/css/layout-fixed.css index a750a502f4..32f32c78fa 100644 --- a/drupal/sites/default/boinc/themes/boinc/css/layout-fixed.css +++ b/drupal/sites/default/boinc/themes/boinc/css/layout-fixed.css @@ -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; } diff --git a/drupal/sites/default/boinc/themes/boinc/template.php b/drupal/sites/default/boinc/themes/boinc/template.php index 7dca110182..c624cc8705 100644 --- a/drupal/sites/default/boinc/themes/boinc/template.php +++ b/drupal/sites/default/boinc/themes/boinc/template.php @@ -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'] .= '
' . $item_count . '
'; + $link['title'] .= '
' . $item_count . '
'; $link['html'] = TRUE; + $link['attributes']['class'] = 'compound'; } } }