##// END OF EJS Templates
permissions: explicitly register all permissions set for user. Fixes #4217...
permissions: explicitly register all permissions set for user. Fixes #4217 - in order to get a proper inheritance chain of permissions we'll register each step. This allows to get full inheritance chain. Final permissions will be the same becuase the only thing we change is we register each step before permissions final value. - Also display the permissions summary in a nicer way more explicitly stating what permissions overwrites which.

File last commit:

r1921:12a61bbb default
r2063:8a6e9139 default
Show More
notifications_data.mako
46 lines | 1.9 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%namespace name="base" file="/base/base.mako"/>
notifications: ported views to pyramid
r1920 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('My notifications')}</h3>
</div>
<div class="panel-body">
%if c.notifications:
templating: use .mako as extensions for template files.
r1282
notifications: ported views to pyramid
r1920 <div class="notification-list notification-table">
%for notification in c.notifications:
<div id="notification_${notification.notification.notification_id}" class="container ${'unread' if not notification.read else '' }">
<div class="notification-header">
<div class="desc ${'unread' if not notification.read else '' }">
<a href="${h.route_path('notifications_show', notification_id=notification.notification.notification_id)}">
${base.gravatar(notification.notification.created_by_user.email, 16)}
notifications: removed usage of pylons translation from models.
r1921 ${h.notification_description(notification.notification, request)}
notifications: ported views to pyramid
r1920 </a>
</div>
<div class="delete-notifications">
<span onclick="deleteNotification(${notification.notification.notification_id})" class="delete-notification tooltip" title="${_('Delete')}"><i class="icon-delete"></i></span>
</div>
<div class="read-notifications">
%if not notification.read:
<span onclick="readNotification(${notification.notification.notification_id})" class="read-notification tooltip" title="${_('Mark as read')}"><i class="icon-ok"></i></span>
%endif
</div>
</div>
<div class="notification-subject"></div>
</div>
%endfor
</div>
templating: use .mako as extensions for template files.
r1282
notifications: ported views to pyramid
r1920 <div class="notification-paginator">
<div class="pagination-wh pagination-left">
${c.notifications.pager('$link_previous ~2~ $link_next')}
</div>
</div>
%else:
<div class="table">${_('No notifications here yet')}</div>
%endif
templating: use .mako as extensions for template files.
r1282 </div>
</div>