_dt_elements.html
78 lines
| 2.8 KiB
| text/html
|
HtmlLexer
r1779 | ## DATA TABLE RE USABLE ELEMENTS | |||
## usage: | ||||
## <%namespace name="dt" file="/_data_table/_dt_elements.html"/> | ||||
<%def name="quick_menu(repo_name)"> | ||||
<ul class="menu_items hidden"> | ||||
<li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li> | ||||
<li> | ||||
<a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}"> | ||||
<span class="icon"> | ||||
<img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> | ||||
</span> | ||||
r1888 | <span>${_('Summary')}</span> | |||
</a> | ||||
r1779 | </li> | |||
<li> | ||||
<a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}"> | ||||
<span class="icon"> | ||||
<img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> | ||||
</span> | ||||
r1888 | <span>${_('Changelog')}</span> | |||
</a> | ||||
r1779 | </li> | |||
<li> | ||||
<a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}"> | ||||
<span class="icon"> | ||||
<img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> | ||||
</span> | ||||
r1888 | <span>${_('Files')}</span> | |||
</a> | ||||
r1779 | </li> | |||
<li> | ||||
<a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}"> | ||||
<span class="icon"> | ||||
<img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" /> | ||||
</span> | ||||
r1888 | <span>${_('Fork')}</span> | |||
</a> | ||||
</li> | ||||
r1779 | </ul> | |||
</%def> | ||||
<%def name="repo_name(name,rtype,private,fork_of)"> | ||||
<div style="white-space: nowrap"> | ||||
##TYPE OF REPO | ||||
r1959 | %if h.is_hg(rtype): | |||
r1779 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> | |||
r1959 | %elif h.is_git(rtype): | |||
r1779 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> | |||
r1888 | %endif | |||
r1779 | ##PRIVATE/PUBLIC | |||
%if private: | ||||
<img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> | ||||
%else: | ||||
<img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> | ||||
%endif | ||||
r1888 | ||||
##NAME | ||||
r1779 | ${h.link_to(name,h.url('summary_home',repo_name=name),class_="repo_name")} | |||
%if fork_of: | ||||
<a href="${h.url('summary_home',repo_name=fork_of)}"> | ||||
<img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a> | ||||
%endif | ||||
</div> | ||||
</%def> | ||||
<%def name="revision(name,rev,tip,author,last_msg)"> | ||||
<div> | ||||
%if rev >= 0: | ||||
<pre><a title="${h.tooltip('%s:\n\n%s' % (author,last_msg))}" class="tooltip" href="${h.url('changeset_home',repo_name=name,revision=tip)}">${'r%s:%s' % (rev,h.short_id(tip))}</a></pre> | ||||
%else: | ||||
${_('No changesets yet')} | ||||
%endif | ||||
</div> | ||||
</%def> | ||||