Files
@ e64c64e2b8aa
Branch filter:
Location: kallithea/rhodecode/templates/data_table/_dt_elements.html - annotation
e64c64e2b8aa
4.0 KiB
text/html
re implemented affected_files function for git using dulwich
it speeds up things like 70%
it speeds up things like 70%
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 a221706dab50 a221706dab50 a221706dab50 a221706dab50 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 f1b76a558a66 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 cc8d7d450d15 | ## DATA TABLE RE USABLE ELEMENTS
## usage:
## <%namespace name="dt" file="/data_table/_dt_elements.html"/>
<%def name="repo_actions(repo_name)">
${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()}
</%def>
<%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>
<%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)">
<%
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
%if private and c.visual.show_private_icon:
<img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
%elif not private and c.visual.show_public_icon:
<img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
%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:
<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>
<%def name="user_gravatar(email, size=24)">
<div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(email, size)}"/> </div>
</%def>
<%def name="user_actions(user_id, username)">
${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()}
</%def>
<%def name="user_name(user_id, username)">
${h.link_to(username,h.url('edit_user', id=user_id))}
</%def>
|