##// END OF EJS Templates
templates: move site branding in page title to base template...
templates: move site branding in page title to base template Instead of repeating the same three lines in each and every template, move it to the base template.

File last commit:

r4845:3a3ec354 default
r4845:3a3ec354 default
Show More
pullrequest_show_my.html
50 lines | 1.1 KiB | text/html | HtmlLexer
<%inherit file="/base/base.html"/>
<%block name="title">
${_('My Pull Requests')}
</%block>
<%def name="breadcrumbs_links()">
${_('My Pull Requests')}
</%def>
<%block name="header_menu">
${self.menu('my_pullrequests')}
</%block>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
</div>
<div id="pullrequests_container" class="table">
## loaded via AJAX
${_('Loading...')}
</div>
<script type="text/javascript">
pyroutes.register('my_pullrequests_data', "${url('my_pullrequests_data')}", []);
var show_pullrequests = function(e){
var url = pyroutes.url('my_pullrequests_data');
if ($('#show_closed').prop('checked')) {
var url = pyroutes.url('my_pullrequests_data', {'pr_show_closed': '1'});
}
asynchtml(url, $('#pullrequests_container'), function(){
// new #show_closed has just been loaded
$('#show_closed').change(function (e) {
show_pullrequests(e);
});
});
}
show_pullrequests()
</script>
</div>
</%def>