baseline
[omp.pkp.sfu.ca.git] / plugins / blocks / notification / block.tpl
blob34014cf0b148c1922f3c961e0022d9f2e2fa544f
1 {**
2  * block.tpl
3  *
4  * Copyright (c) 2003-2009 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Common site sidebar menu -- "Notification" block.
8  *
9  * $Id: block.tpl,v 1.2 2009/04/08 19:54:35 asmecher Exp $
10  *}
11 {if $currentPress}
12 <div class="block" id="notification">
13         <span class="blockTitle">{translate key="notification.notifications"}</span>
14         <ul>
15                 {if $isUserLoggedIn}
16                         <li><a href="{url page="notification"}">{translate key="common.view"}</a>
17                                 {if $unreadNotifications > 0}{translate key="notification.notificationsNew" numNew=$unreadNotifications}{/if}</li>
18                         <li><a href="{url page="notification" op="settings"}">{translate key="common.manage"}</a></li>                  
19                 {else}
20                         <li><a href="{url page="notification"}">{translate key="common.view"}</a></li>
21                         <li><a href="{url page="notification" op="subscribeMailList"}">{translate key="notification.subscribe"}</a> / <a href="{url page="notification" op="unsubscribeMailList"}">{translate key="notification.unsubscribe"}</a></li>  
22                 {/if}
23         </ul>
24 </div>  
25 {/if}