Mercurial > kallithea
comparison rhodecode/templates/admin/notifications/show_notification.html @ 1712:cac5109ac3b6 beta
Notification system improvements
- deleting
- tests
- ui
- moved to separate controller
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 23 Nov 2011 00:55:05 +0200 |
parents | |
children | 7ff304d3028f |
comparison
equal
deleted
inserted
replaced
1711:b369bec5d468 | 1712:cac5109ac3b6 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('Show notification')} ${c.rhodecode_user.username} - ${c.rhodecode_name} | |
6 </%def> | |
7 | |
8 <%def name="breadcrumbs_links()"> | |
9 ${h.link_to(_('Notifications'),h.url('notifications'))} | |
10 » | |
11 ${_('Show notification')} | |
12 </%def> | |
13 | |
14 <%def name="page_nav()"> | |
15 ${self.menu('admin')} | |
16 </%def> | |
17 | |
18 <%def name="main()"> | |
19 <div class="box"> | |
20 <!-- box / title --> | |
21 <div class="title"> | |
22 ${self.breadcrumbs()} | |
23 <ul class="links"> | |
24 <li> | |
25 <span style="text-transform: uppercase;"><a href="#">${_('Compose message')}</a></span> | |
26 </li> | |
27 </ul> | |
28 </div> | |
29 <div class="table"> | |
30 <div class="notification-header"> | |
31 <div class="gravatar"> | |
32 <img alt="gravatar" src="${h.gravatar_url(h.email(c.notification.created_by_user.email),24)}"/> | |
33 </div> | |
34 <div class="desc"> | |
35 ${c.notification.description} | |
36 </div> | |
37 <div class="delete-notifications"> | |
38 <span id="${c.notification.notification_id}" class="delete_icon action"></span> | |
39 </div> | |
40 </div> | |
41 <div>${h.rst(c.notification.body)}</div> | |
42 </div> | |
43 </div> | |
44 <script type="text/javascript"> | |
45 var url = "${url('notification', notification_id='__NOTIFICATION_ID__')}"; | |
46 YUE.on(YUQ('.delete-notification'),'click',function(e){ | |
47 var notification_id = e.currentTarget.id; | |
48 deleteNotification(url,notification_id) | |
49 }) | |
50 </script> | |
51 </%def> |