Files
@ 6af3e67cc576
Branch filter:
Location: kallithea/rhodecode/templates/admin/notifications/notifications.html - annotation
6af3e67cc576
2.1 KiB
text/html
Add Twitter's Bootstrap 3.0.0 CSS and Javascript files, under Apache License 2.0
These files are exactly as they appear the upstream release 3.0.0 of
Bootstrap, which Twitter released under the Apache License 2.0. To extract
these files, I did the following:
I downloaded the following file:
https://github.com/twbs/bootstrap/archive/v3.0.0.zip
with sha256sum of:
$ sha256sum v3.0.0.zip
2d54f345f4abc6bf65ea648c323e9bae577e6febf755650e62555f2d7a222e17 v3.0.0.zip
And extracted from it these two files:
bootstrap-3.0.0/dist/css/bootstrap.css
bootstrap-3.0.0/dist/js/bootstrap.js
which are licensed under the Apache License 2.0.
and placed them into:
rhodecode/public/css/bootstrap.css
rhodecode/public/js/bootstrap.js
respectively.
These files are exactly as they appear the upstream release 3.0.0 of
Bootstrap, which Twitter released under the Apache License 2.0. To extract
these files, I did the following:
I downloaded the following file:
https://github.com/twbs/bootstrap/archive/v3.0.0.zip
with sha256sum of:
$ sha256sum v3.0.0.zip
2d54f345f4abc6bf65ea648c323e9bae577e6febf755650e62555f2d7a222e17 v3.0.0.zip
And extracted from it these two files:
bootstrap-3.0.0/dist/css/bootstrap.css
bootstrap-3.0.0/dist/js/bootstrap.js
which are licensed under the Apache License 2.0.
and placed them into:
rhodecode/public/css/bootstrap.css
rhodecode/public/js/bootstrap.js
respectively.
cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 b4f401524060 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 cac5109ac3b6 f91d3f9b7230 93d4e3eb7d84 93d4e3eb7d84 93d4e3eb7d84 93d4e3eb7d84 93d4e3eb7d84 cac5109ac3b6 d5e42c00f3c1 77e376fdc4c6 ffd45b185016 ffd45b185016 ffd45b185016 77e376fdc4c6 d04243e932cc 64f7cf8f6a33 ffd45b185016 523b1011a625 d04243e932cc 2aee0dc1784e 2aee0dc1784e 2aee0dc1784e cac5109ac3b6 cac5109ac3b6 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 3fdf7c3be2c9 64f7cf8f6a33 d04243e932cc 3fdf7c3be2c9 64f7cf8f6a33 f8742e1acf08 f8742e1acf08 f8742e1acf08 b4f401524060 f8742e1acf08 cac5109ac3b6 f91d3f9b7230 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('My Notifications')} ${c.rhodecode_user.username}
%if c.rhodecode_name:
· ${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>
|