##// END OF EJS Templates
implements #239 manual marking of repos as forks for admins
implements #239 manual marking of repos as forks for admins

File last commit:

r1739:4a5b93b3 beta
r1755:1088ded6 beta
Show More
notifications.html
62 lines | 2.1 KiB | text/html | HtmlLexer
Notification system improvements...
r1712 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('My Notifications')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
${_('My Notifications')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
<ul class="links">
<li>
<span style="text-transform: uppercase;"><a href="#">${_('Compose message')}</a></span>
</li>
</ul>
</div>
% if c.notifications:
<%
unread = lambda n:{False:'unread'}.get(n)
%>
<div class="table">
forbid notifications view for anonymous users
r1739 <div class="notification-list">
Notification system improvements...
r1712 %for notification in c.notifications:
forbid notifications view for anonymous users
r1739 <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}">
Notification system improvements...
r1712 <div class="notification-header">
<div class="gravatar">
Tests updates, Session refactoring
r1713 <img alt="gravatar" src="${h.gravatar_url(h.email(notification.notification.created_by_user.email),24)}"/>
Notification system improvements...
r1712 </div>
Tests updates, Session refactoring
r1713 <div class="desc ${unread(notification.read)}">
<a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a>
Notification system improvements...
r1712 </div>
<div class="delete-notifications">
Tests updates, Session refactoring
r1713 <span id="${notification.notification.notification_id}" class="delete-notification delete_icon action"></span>
Notification system improvements...
r1712 </div>
</div>
Notification fixes...
r1717 <div class="notification-subject">${h.literal(notification.notification.subject)}</div>
Notification system improvements...
r1712 </div>
%endfor
forbid notifications view for anonymous users
r1739 </div>
Notification system improvements...
r1712 </div>
%else:
<div class="table">${_('No notifications here yet')}</div>
%endif
</div>
<script type="text/javascript">
var url = "${url('notification', notification_id='__NOTIFICATION_ID__')}";
YUE.on(YUQ('.delete-notification'),'click',function(e){
var notification_id = e.currentTarget.id;
deleteNotification(url,notification_id)
})
</script>
</%def>