##// END OF EJS Templates
Import some of the files from Select2 3.5.0 Javascript system....
Import some of the files from Select2 3.5.0 Javascript system. RhodeCode 2.2.5 used a version of Select2. Herein, we bring into Kallithea only a few files directly from Select2 3.5.0 (6ef7155) upstream, using the commands indicated below: (cd /tmp; \ git clone https://github.com/ivaynberg/select2.git; \ cd select2; \ git checkout 3.5.0 \ ) mkdir rhodecode/public/js/select2 cp -pa /tmp/select2/select2.{js,css,png} rhodecode/public/js/select2/ cp -pa /tmp/select2/select2x2.png rhodecode/public/js/select2/ cp -pa /tmp/select2/select2-spinner.gif rhodecode/public/js/select2/ hg add rhodecode/public/js/select2/

File last commit:

r4116:ffd45b18 rhodecode-2.2.5-gpl
r4128:bbbb013a rhodecode-2.2.5-gpl
Show More
notifications.html
68 lines | 2.1 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('My Notifications')} ${c.rhodecode_user.username}
%if c.rhodecode_name:
&middot; ${c.rhodecode_name}
%endif
</%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">
${self.breadcrumbs()}
##<ul class="links">
## <li>
## <span style="text-transform: uppercase;"><a href="#">${_('Compose message')}</a></span>
## </li>
##</ul>
</div>
<div style="padding:14px 18px;text-align: right;float:left">
<span id='all' class="btn btn-mini"><a href="${h.url.current()}">${_('All')}</a></span>
<span id='comment' class="btn btn-mini"><a href="${h.url.current(type=c.comment_type)}">${_('Comments')}</a></span>
<span id='pull_request' class="btn btn-mini"><a href="${h.url.current(type=c.pull_request_type)}">${_('Pull Requests')}</a></span>
</div>
%if c.notifications:
<div style="padding:14px 18px;text-align: right;float:right">
<span id='mark_all_read' class="btn btn-mini">${_('Mark all read')}</span>
</div>
%endif
<div id='notification_data'>
<%include file='notifications_data.html'/>
</div>
</div>
<script type="text/javascript">
var url_action = "${url('notification', notification_id='__NOTIFICATION_ID__')}";
var run = function(){
YUE.on(YUQ('.delete-notification'),'click',function(e){
var notification_id = e.currentTarget.id;
deleteNotification(url_action,notification_id)
})
YUE.on(YUQ('.read-notification'),'click',function(e){
var notification_id = e.currentTarget.id;
readNotification(url_action,notification_id)
})
}
run()
YUE.on('mark_all_read','click',function(e){
var url = "${h.url('notifications_mark_all_read', **request.GET.mixed())}";
ypjax(url,'notification_data',function(){run()});
})
var current_filter = "${c.current_filter}";
if (YUD.get(current_filter)){
YUD.addClass(current_filter, 'active');
}
</script>
</%def>