Mercurial > kallithea
view kallithea/templates/admin/notifications/show_notification.html @ 4811:37354e1ab283
template: use block block for page title in root.html
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 11 Feb 2015 02:40:28 +0100 |
parents | ec39e73be935 |
children | 3a3ec35466e7 |
line wrap: on
line source
## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%block name="title"> ${_('Show Notification')} ${c.authuser.username} %if c.site_name: · ${c.site_name} %endif </%block> <%def name="breadcrumbs_links()"> ${h.link_to(_('Notifications'),h.url('notifications'))} » ${_('Show Notification')} </%def> <%block name="header_menu"> ${self.menu('admin')} </%block> <%def name="main()"> <div class="box"> <!-- box / title --> <div class="title"> ${self.breadcrumbs()} </div> <div class="table"> <div id="notification_${c.notification.notification_id}"> <div class="notification-header"> <div class="gravatar"> ${h.gravatar(c.notification.created_by_user.email, size=24)} </div> <div class="desc"> ${c.notification.description} </div> <div class="delete-notifications"> <span id="${c.notification.notification_id}" class="delete-notification action"><i class="icon-minus-circled" id="yui-gen24"></i></span> </div> </div> <div class="notification-body"> <div class="notification-subject">${h.literal(c.notification.subject)}</div> %if c.notification.body: ${h.rst_w_mentions(c.notification.body)} %endif </div> </div> </div> </div> <script type="text/javascript"> var url = "${url('notification', notification_id='__NOTIFICATION_ID__')}"; var main = "${url('notifications')}"; $('.delete-notification').click(function(e){ var notification_id = e.currentTarget.id; deleteNotification(url,notification_id,[function(){window.location=main}]) }); </script> </%def>