##// END OF EJS Templates
added dist dir to .hgignore
added dist dir to .hgignore

File last commit:

r4003:867a7dff default
r4096:9496c047 default
Show More
_dt_elements.html
150 lines | 5.7 KiB | text/html | HtmlLexer
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304 ## 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>
<span>${_('Summary')}</span>
</a>
</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>
<span>${_('Changelog')}</span>
</a>
</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>
<span>${_('Files')}</span>
</a>
</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>
<span>${_('Fork')}</span>
</a>
</li>
</ul>
</%def>
Use common function for generation of grid data...
r3154 <%def name="repo_name(name,rtype,private,fork_of,short_name=False,admin=False)">
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304 <%
def get_name(name,short_name=short_name):
if short_name:
return name.split('/')[-1]
else:
return name
%>
<div style="white-space: nowrap">
##TYPE OF REPO
%if h.is_hg(rtype):
<img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
%elif h.is_git(rtype):
<img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
%endif
##PRIVATE/PUBLIC
merged + fixed pull request #62: Implemented metatags and visualisation options....
r2674 %if private and c.visual.show_private_icon:
Make the private icon of repo more distinguished from...
r4003 <img class="icon" title="${_('Private repository')}" alt="${_('Private repository')}" src="${h.url('/images/icons/private_repo.png')}"/>
merged + fixed pull request #62: Implemented metatags and visualisation options....
r2674 %elif not private and c.visual.show_public_icon:
Make the private icon of repo more distinguished from...
r4003 <img class="icon" title="${_('Public repository')}" alt="${_('Public repository')}" src="${h.url('/images/icons/public_repo.png')}"/>
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304 %endif
##NAME
%if admin:
${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")}
%else:
${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
%endif
%if fork_of:
Added lightweight dashboard option. ref #500
r2936 <a href="${h.url('summary_home',repo_name=fork_of.repo_name)}">
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 <img class="icon" alt="${_('Fork')}" title="${_('Fork of %s') % fork_of.repo_name}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304 %endif
</div>
</%def>
Update last_change from VCS data on request....
r2937 <%def name="last_change(last_change)">
<span class="tooltip" date="${last_change}" title="${h.tooltip(h.fmt_date(last_change))}">${h.age(last_change)}</span>
</%def>
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304
<%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>
No more raw html inside users controller....
r2663
Added lightweight dashboard option. ref #500
r2936 <%def name="rss(name)">
%if c.rhodecode_user.username != 'default':
<a title="${_('Subscribe to %s rss feed')% name}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"></a>
%else:
<a title="${_('Subscribe to %s rss feed')% name}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=name)}"></a>
%endif
</%def>
<%def name="atom(name)">
%if c.rhodecode_user.username != 'default':
<a title="${_('Subscribe to %s atom feed')% name}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"></a>
%else:
<a title="${_('Subscribe to %s atom feed')% name}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=name)}"></a>
%endif
</%def>
No more raw html inside users controller....
r2663 <%def name="user_gravatar(email, size=24)">
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(email, size)}"/> </div>
</%def>
fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
r3245 <%def name="repo_actions(repo_name, super_user=True)">
Use common function for generation of grid data...
r3154 <div>
<div style="float:left">
fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
r3245 <a href="${h.url('edit_repo',repo_name=repo_name)}" title="${_('edit')}">
${h.submit('edit_%s' % repo_name,_('edit'),class_="edit_icon action_button")}
</a>
Use common function for generation of grid data...
r3154 </div>
<div style="float:left">
fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
r3245 ${h.form(h.url('repo', repo_name=repo_name),method='delete')}
${h.submit('remove_%s' % repo_name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")}
${h.end_form()}
Use common function for generation of grid data...
r3154 </div>
whitespace cleanup
r3168 </div>
Use common function for generation of grid data...
r3154 </%def>
No more raw html inside users controller....
r2663 <%def name="user_actions(user_id, username)">
make user listing have edit button to be consistent...
r3800 <div style="float:left">
<a href="${h.url('edit_user',id=user_id)}" title="${_('edit')}">
${h.submit('edit_%s' % username,_('edit'),class_="edit_icon action_button")}
</a>
</div>
<div style="float:left">
No more raw html inside users controller....
r2663 ${h.form(h.url('delete_user', id=user_id),method='delete')}
${h.submit('remove_',_('delete'),id="remove_user_%s" % user_id,
class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this user: %s') % username+"');")}
${h.end_form()}
make user listing have edit button to be consistent...
r3800 </div>
No more raw html inside users controller....
r2663 </%def>
<%def name="user_name(user_id, username)">
${h.link_to(username,h.url('edit_user', id=user_id))}
</%def>
Use common function for generation of grid data...
r3154
<%def name="toggle_follow(repo_id)">
<span id="follow_toggle_${repo_id}" class="following" title="${_('Stop following this repository')}"
onclick="javascript:toggleFollowingRepo(this, ${repo_id},'${str(h.get_token())}')">
</span>
</%def>