annotate rhodecode/templates/admin/notifications/notifications.html @ 2244:77e376fdc4c6 codereview

pull requests draft UI
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 08 May 2012 02:04:28 +0200
parents 17ff5693566b
children 74f2910f7ad9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1702
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <%inherit file="/base/base.html"/>
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <%def name="title()">
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 ${_('My Notifications')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 </%def>
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 <%def name="breadcrumbs_links()">
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 ${_('My Notifications')}
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 </%def>
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <%def name="page_nav()">
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 ${self.menu('admin')}
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 </%def>
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 <%def name="main()">
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 <div class="box">
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 <!-- box / title -->
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <div class="title">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1817
diff changeset
20 ${self.breadcrumbs()}
2001
93d4e3eb7d84 made upper menu always hover, looks nicer and produces less troubles
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
21 ##<ul class="links">
93d4e3eb7d84 made upper menu always hover, looks nicer and produces less troubles
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
22 ## <li>
93d4e3eb7d84 made upper menu always hover, looks nicer and produces less troubles
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
23 ## <span style="text-transform: uppercase;"><a href="#">${_('Compose message')}</a></span>
93d4e3eb7d84 made upper menu always hover, looks nicer and produces less troubles
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
24 ## </li>
93d4e3eb7d84 made upper menu always hover, looks nicer and produces less troubles
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
25 ##</ul>
1702
8cb7f5c4d494 #302 - basic notification system, models+tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 </div>
1817
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
27 %if c.notifications:
2244
77e376fdc4c6 pull requests draft UI
Marcin Kuzminski <marcin@python-works.com>
parents: 2207
diff changeset
28 <div style="padding:14px 18px;text-align: right;float:left">
77e376fdc4c6 pull requests draft UI
Marcin Kuzminski <marcin@python-works.com>
parents: 2207
diff changeset
29 <span id='all' class="ui-btn">${_('All')}</span>
77e376fdc4c6 pull requests draft UI
Marcin Kuzminski <marcin@python-works.com>
parents: 2207
diff changeset
30 <span id='pull_request' class="ui-btn">${_('Pull requests')}</span>
77e376fdc4c6 pull requests draft UI
Marcin Kuzminski <marcin@python-works.com>
parents: 2207
diff changeset
31 </div>
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
32 <div style="padding:14px 18px;text-align: right;float:right">
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
33 <span id='mark_all_read' class="ui-btn">${_('Mark all read')}</span>
1817
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
34 </div>
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
35 %endif
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
36 <div id='notification_data'>
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
37 <%include file='notifications_data.html'/>
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
38 </div>
1712
cac5109ac3b6 Notification system improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1703
diff changeset
39 </div>
cac5109ac3b6 Notification system improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1703
diff changeset
40 <script type="text/javascript">
1817
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
41 var url_del = "${url('notification', notification_id='__NOTIFICATION_ID__')}";
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
42 YUE.on(YUQ('.delete-notification'),'click',function(e){
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
43 var notification_id = e.currentTarget.id;
1817
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
44 deleteNotification(url_del,notification_id)
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 1739
diff changeset
45 })
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
46 YUE.on('mark_all_read','click',function(e){
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
47 var url = "${h.url('notifications_mark_all_read')}";
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
48 ypjax(url,'notification_data',function(){
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
49 var notification_counter = YUD.get('notification_counter');
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
50 if(notification_counter){
2207
17ff5693566b white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2190
diff changeset
51 notification_counter.innerHTML=0;
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
52 }
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
53 YUE.on(YUQ('.delete-notification'),'click',function(e){
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
54 var notification_id = e.currentTarget.id;
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
55 deleteNotification(url_del,notification_id)
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
56 })
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
57 });
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
58 })
1712
cac5109ac3b6 Notification system improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1703
diff changeset
59 </script>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1817
diff changeset
60 </%def>