Added new mail notification icon for logged in users

(DBOINCP-170)
This commit is contained in:
Tristan Olive 2015-05-20 23:17:53 -04:00
parent a6e103b019
commit 7ed4ab5bad
3 changed files with 35 additions and 0 deletions

View File

@ -685,6 +685,26 @@ table.user-projects {
padding: 3px 5px 1px;
background: #747477;
}
.new-mail-indicator {
background: url(../images/icon-mail.png) 0 0 no-repeat;
background-size: 25px;
float: right;
height: 25px;
margin-top: 5px;
text-align: center;
width: 25px;
}
.new-mail-indicator .item-count-wrapper {
background: none;
margin: 0;
padding: 0;
}
.new-mail-indicator .item-count {
background-color: #800;
color: #fff;
margin: 6px 0 0;
padding: 0 1px;
}
.item-list .pager {
font-size: 10px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B

View File

@ -148,6 +148,21 @@
<div id="header-wrapper" class="shadow">
<div id="header"><div class="section clearfix">
<?php if ($logged_in): ?>
<?php $pm_count = privatemsg_unread_count(); ?>
<?php if ($pm_count): ?>
<a href="<?php echo $base_path; ?>messages">
<div class="new-mail-indicator">
<div class="item-count-wrapper">
<span class="item-count">
<?php print $pm_count; ?>
</span>
</div>
</div>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print bts('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print bts('Home'); ?>" /></a>