mirror of https://github.com/BOINC/boinc.git
Added new mail notification icon for logged in users
(DBOINCP-170)
This commit is contained in:
parent
a6e103b019
commit
7ed4ab5bad
|
@ -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 |
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue