bookmarks_data.mako
34 lines
| 1.0 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | ## DATA TABLE RE USABLE ELEMENTS FOR BOOKMARKS | |||
## usage: | ||||
## <%namespace name="bookmarks" file="/bookmarks/bookmarks_data.mako"/> | ||||
## bookmarks.<func_name>(arg,arg2) | ||||
r4026 | <%namespace name="base" file="/base/base.mako"/> | |||
r1282 | ||||
<%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> | ||||
r1898 | <%def name="name(name, files_url, closed)"> | |||
r4026 | <span class="tag booktag"> | |||
r1282 | <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)"> | ||||
r4026 | ${base.gravatar_with_user(author, tooltip=True)} | |||
r1282 | </%def> | |||
<%def name="commit(message, commit_id, commit_idx)"> | ||||
<div> | ||||
r1927 | <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> | |||
r1282 | </div> | |||
</%def> | ||||