##// END OF EJS Templates
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation....
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation. In some cases when there are no longer any files this caused error since filediff wasn't present. In addition this generated wrong ids since it used a last-defined attribute on a for loop. Fixes #5567

File last commit:

r1927:e6df2b71 default
r3830:5bbd362b stable
Show More
bookmarks_data.mako
33 lines | 1.1 KiB | application/x-mako | MakoHtmlLexer
## DATA TABLE RE USABLE ELEMENTS FOR BOOKMARKS
## usage:
## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data.mako"/>
## bookmarks.<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, closed)">
<span class="tag booktag" title="${h.tooltip(_('Bookmark %s') % (name,))}">
<a href="${files_url}">
<i class="icon-bookmark"></i>
${name}
</a>
</span>
</%def>
<%def name="date(date)">
${h.age_component(date)}
</%def>
<%def name="author(author)">
<span class="tooltip" title="${h.tooltip(author)}">${h.link_to_user(author)}</span>
</%def>
<%def name="commit(message, commit_id, commit_idx)">
<div>
<pre><a title="${h.tooltip(message)}" href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
</div>
</%def>