file_diff.html
47 lines
| 1.2 KiB
| text/html
|
HtmlLexer
r547 | <%inherit file="/base/base.html"/> | |||
<%def name="title()"> | ||||
Vincent Duvert
|
r2417 | ${_('%s File diff') % c.repo_name} - ${c.rhodecode_name} | ||
r547 | </%def> | |||
r619 | ||||
r547 | <%def name="breadcrumbs_links()"> | |||
Takumi IINO
|
r2492 | ${h.link_to(_(u'Home'),h.url('/'))} | ||
r547 | » | |||
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | ||||
» | ||||
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()"> | ||||
r1888 | ${self.menu('files')} | |||
r547 | </%def> | |||
<%def name="main()"> | ||||
<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> | |||
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> | |||