##// END OF EJS Templates
Closing branch clodereview
Closing branch clodereview

File last commit:

r2433:74f2910f codereview
r2477:2f3b1610 codereview
Show More
notifications.html
60 lines | 1.9 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">
White-space cleanup
r1888 ${self.breadcrumbs()}
made upper menu always hover, looks nicer and produces less troubles...
r2001 ##<ul class="links">
## <li>
## <span style="text-transform: uppercase;"><a href="#">${_('Compose message')}</a></span>
## </li>
##</ul>
Notification system improvements...
r1712 </div>
- fixed issue with mark all read button for notifications and listeners on delete buttons...
r1817 %if c.notifications:
pull requests draft UI
r2244 <div style="padding:14px 18px;text-align: right;float:left">
Added pull requests filter into notification inbox....
r2433 <span id='all' class="ui-btn"><a href="${h.url.current()}">${_('All')}</a></span>
<span id='pull_request' class="ui-btn"><a href="${h.url.current(type=c.pull_request_type)}">${_('Pull requests')}</a></span>
pull requests draft UI
r2244 </div>
notification inbox improvements...
r2190 <div style="padding:14px 18px;text-align: right;float:right">
mark all read button for notifications
r1791 <span id='mark_all_read' class="ui-btn">${_('Mark all read')}</span>
- fixed issue with mark all read button for notifications and listeners on delete buttons...
r1817 </div>
%endif
mark all read button for notifications
r1791 <div id='notification_data'>
<%include file='notifications_data.html'/>
</div>
Notification system improvements...
r1712 </div>
<script type="text/javascript">
- fixed issue with mark all read button for notifications and listeners on delete buttons...
r1817 var url_del = "${url('notification', notification_id='__NOTIFICATION_ID__')}";
mark all read button for notifications
r1791 YUE.on(YUQ('.delete-notification'),'click',function(e){
var notification_id = e.currentTarget.id;
- fixed issue with mark all read button for notifications and listeners on delete buttons...
r1817 deleteNotification(url_del,notification_id)
mark all read button for notifications
r1791 })
notification inbox improvements...
r2190 YUE.on('mark_all_read','click',function(e){
Added pull requests filter into notification inbox....
r2433 var url = "${h.url('notifications_mark_all_read', **request.GET)}";
notification inbox improvements...
r2190 ypjax(url,'notification_data',function(){
var notification_counter = YUD.get('notification_counter');
if(notification_counter){
white space cleanup
r2207 notification_counter.innerHTML=0;
notification inbox improvements...
r2190 }
YUE.on(YUQ('.delete-notification'),'click',function(e){
var notification_id = e.currentTarget.id;
deleteNotification(url_del,notification_id)
})
});
})
Notification system improvements...
r1712 </script>
White-space cleanup
r1888 </%def>