##// END OF EJS Templates
core: use new style pyramid partial renderer where possible.
core: use new style pyramid partial renderer where possible.

File last commit:

r1843:ae62b3c2 default
r1897:01df07bd default
Show More
branches_data.mako
33 lines | 1.1 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 ## DATA TABLE RE USABLE ELEMENTS FOR BRANCHES
## usage:
## <%namespace name="branch" file="/branches/branches_data.mako"/>
## branch.<func_name>(arg,arg2)
<%def name="compare(commit_id)">
<input class="compare-radio-button" type="radio" name="compare_source" value="${commit_id}"/>
<input class="compare-radio-button" type="radio" name="compare_target" value="${commit_id}"/>
</%def>
<%def name="name(name, files_url)">
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <span class="tag branchtag" title="${h.tooltip(_('Branch %s') % (name,))}">
templating: use .mako as extensions for template files.
r1282 <a href="${files_url}"><i class="icon-code-fork"></i>${name}
%if name in c.closed_branches:
[closed]
%endif
</a>
</span>
</%def>
<%def name="date(date)">
${h.age_component(date)}
</%def>
<%def name="author(author)">
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <span class="tooltip" title="${h.tooltip(author)}">${h.link_to_user(author)}</span>
templating: use .mako as extensions for template files.
r1282 </%def>
<%def name="commit(message, commit_id, commit_idx)">
<div>
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <pre><a title="${h.tooltip(message)}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
templating: use .mako as extensions for template files.
r1282 </div>
</%def>