file_diff.html
49 lines
| 1.5 KiB
| text/html
|
HtmlLexer
r547 | <%inherit file="/base/base.html"/> | ||
<%def name="title()"> | |||
r619 | ${c.repo_name} ${_('File diff')} - ${c.rhodecode_name} | ||
r547 | </%def> | ||
r619 | |||
r547 | <%def name="breadcrumbs_links()"> | ||
${h.link_to(u'Home',h.url('/'))} | |||
» | |||
${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()"> | |||
${self.menu('files')} | |||
</%def> | |||
<%def name="main()"> | |||
<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, | |||
r636 | revision=c.changeset_2.raw_id,f_path=c.f_path))}</span> | ||
r547 | » <span>${h.link_to(_('diff'), | ||
r636 | h.url.current(diff2=c.changeset_2.raw_id,diff1=c.changeset_1.raw_id,diff='diff'))}</span> | ||
r547 | » <span>${h.link_to(_('raw diff'), | ||
r636 | h.url.current(diff2=c.changeset_2.raw_id,diff1=c.changeset_1.raw_id,diff='raw'))}</span> | ||
r547 | » <span>${h.link_to(_('download diff'), | ||
r636 | h.url.current(diff2=c.changeset_2.raw_id,diff1=c.changeset_1.raw_id,diff='download'))}</span> | ||
r547 | </div> | ||
</div> | |||
<div class="code-body"> | |||
%if c.no_changes: | |||
${_('No changes')} | |||
%else: | |||
${c.cur_diff|n} | |||
%endif | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</%def> | |||