file_diff.html
48 lines
| 1.4 KiB
| text/html
|
HtmlLexer
r129 | <%inherit file="/base/base.html"/> | ||
<%def name="title()"> | |||
${_('Repository managment')} | |||
</%def> | |||
r362 | <%def name="breadcrumbs_links()"> | ||
r129 | ${h.link_to(u'Home',h.url('/'))} | ||
r362 | » | ||
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | |||
» | |||
${'%s: %s %s %s' % (_('File diff'),c.diff2,'→',c.diff1)|n} | |||
r129 | </%def> | ||
r362 | |||
r129 | <%def name="page_nav()"> | ||
r189 | ${self.menu('files')} | ||
r129 | </%def> | ||
<%def name="main()"> | |||
r362 | <div class="box"> | ||
<!-- box / title --> | |||
<div class="title"> | |||
${self.breadcrumbs()} | |||
</div> | |||
<div class="table"> | |||
<div id="body" class="diffblock"> | |||
<div class="code-header"> | |||
<div> | |||
<span>${h.link_to(c.f_path,h.url('files_home',repo_name=c.repo_name, | |||
revision=c.diff2.split(':')[1],f_path=c.f_path))}</span> | |||
r387 | » <span>${h.link_to(_('diff'), | ||
r362 | h.url.current(diff2=c.diff2.split(':')[-1],diff1=c.diff1.split(':')[-1],diff='diff'))}</span> | ||
r387 | » <span>${h.link_to(_('raw diff'), | ||
r362 | h.url.current(diff2=c.diff2.split(':')[-1],diff1=c.diff1.split(':')[-1],diff='raw'))}</span> | ||
r387 | » <span>${h.link_to(_('download diff'), | ||
r362 | h.url.current(diff2=c.diff2.split(':')[-1],diff1=c.diff1.split(':')[-1],diff='download'))}</span> | ||
</div> | |||
</div> | |||
<div class="code-body"> | |||
%if c.no_changes: | |||
${_('No changes')} | |||
%else: | |||
${c.cur_diff|n} | |||
%endif | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</%def> | |||