file_diff.html
46 lines
| 1.1 KiB
| text/html
|
HtmlLexer
r547 | <%inherit file="/base/base.html"/> | |||
<%def name="title()"> | ||||
r3582 | ${_('%s File Diff') % c.repo_name} · ${c.rhodecode_name} | |||
r547 | </%def> | |||
r619 | ||||
r547 | <%def name="breadcrumbs_links()"> | |||
r636 | ${_('File diff')} r${c.changeset_1.revision}:${h.short_id(c.changeset_1.raw_id)} → r${c.changeset_2.revision}:${h.short_id(c.changeset_2.raw_id)} | |||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
Mads Kiilerich
|
r3603 | ${self.menu('repositories')} | ||
r547 | </%def> | |||
Mads Kiilerich
|
r3601 | |||
r547 | <%def name="main()"> | |||
Mads Kiilerich
|
r3601 | ${self.context_bar('files')} | ||
r547 | <div class="box"> | |||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
</div> | ||||
r1789 | <div> | |||
r1888 | ## diff block | |||
r1789 | <%namespace name="diff_block" file="/changeset/diff_block.html"/> | |||
r1888 | ${diff_block.diff_block(c.changes)} | |||
r547 | </div> | |||
r1888 | </div> | |||
Mads Kiilerich
|
r3601 | |||
r1789 | <script> | |||
YUE.onDOMReady(function(){ | ||||
r1888 | ||||
r1789 | YUE.on(YUQ('.diff-menu-activate'),'click',function(e){ | |||
var act = e.currentTarget.nextElementSibling; | ||||
r1888 | ||||
r1789 | if(YUD.hasClass(act,'active')){ | |||
YUD.removeClass(act,'active'); | ||||
YUD.setStyle(act,'display','none'); | ||||
}else{ | ||||
YUD.addClass(act,'active'); | ||||
YUD.setStyle(act,'display',''); | ||||
} | ||||
}); | ||||
}) | ||||
</script> | ||||
r1888 | </%def> | |||