annotate rhodecode/templates/data_table/_dt_elements.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents 867a7dffc424
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
1 ## DATA TABLE RE USABLE ELEMENTS
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
2 ## usage:
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
3 ## <%namespace name="dt" file="/data_table/_dt_elements.html"/>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
4
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
5 <%def name="quick_menu(repo_name)">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
6 <ul class="menu_items hidden">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
7 ##<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
8
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
9 <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
10 <li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
11 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
12 <span class="icon">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
13 <i class="icon-file-text"></i>
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
14 </span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
15 <span>${_('Summary')}</span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
16 </a>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
17 </li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
18 <li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
19 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
20 <span class="icon">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
21 <i class="icon-list-alt"></i>
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
22 </span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
23 <span>${_('Changelog')}</span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
24 </a>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
25 </li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
26 <li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
27 <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
28 <span class="icon">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
29 <i class="icon-file-alt"></i>
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
30 </span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
31 <span>${_('Files')}</span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
32 </a>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
33 </li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
34 <li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
35 <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
36 <span class="icon">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
37 <i class="icon-code-fork"></i>
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
38 </span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
39 <span>${_('Fork')}</span>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
40 </a>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
41 </li>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
42 </ul>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
43 </%def>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
44
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
45 <%def name="repo_name(name,rtype,rstate,private,fork_of,short_name=False,admin=False)">
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
46 <%
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
47 def get_name(name,short_name=short_name):
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
48 if short_name:
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
49 return name.split('/')[-1]
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
50 else:
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
51 return name
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
52 %>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
53 <div style="white-space: nowrap; ${'opacity: 0.5' if rstate == 'repo_state_pending' else ''}}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
54 ##NAME
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
55 %if admin:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
56 <a href="${h.url('edit_repo',repo_name=name)}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
57 %else:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
58 <a href="${h.url('summary_home',repo_name=name)}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
59 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
60
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
61 ##TYPE OF REPO
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
62 %if h.is_hg(rtype):
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
63 <span title="${_('Mercurial repository')}"><i class="icon-hg" style="color: #316293; font-size: 14px;"></i></span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
64 %elif h.is_git(rtype):
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
65 <span title="${_('Git repository')}"><i class="icon-git" style="color: #e85634; font-size: 14px;"></i></span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
66 %endif
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
67
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
68 ##PRIVATE/PUBLIC
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
69 %if private and c.visual.show_private_icon:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
70 <i class="icon-lock" style="color: #e85634; font-size: 16px; vertical-align: -2px; margin: 0px 1px 0px 3px" title="${_('Private repository')}"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
71 %elif not private and c.visual.show_public_icon:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
72 <i class="icon-unlock-alt" style="color: #999999; font-size: 16px; vertical-align: -2px; margin: 0px 1px 0px 3px" title="${_('Public repository')}"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
73 %else:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
74 <span style="margin: 0px 8px 0px 8px"></span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
75 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
76 ${get_name(name)}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
77 </a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
78 %if fork_of:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
79 <a href="${h.url('summary_home',repo_name=fork_of.repo_name)}"><i class="icon-code-fork"></i></a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
80 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
81 %if rstate == 'repo_state_pending':
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
82 <i class="icon-cogs" style="color: #036185;" title="${_('Repository creating in progress...')}"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
83 %endif
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
84 </div>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
85 </%def>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
86
2937
d439d408b415 Update last_change from VCS data on request.
Marcin Kuzminski <marcin@python-works.com>
parents: 2936
diff changeset
87 <%def name="last_change(last_change)">
d439d408b415 Update last_change from VCS data on request.
Marcin Kuzminski <marcin@python-works.com>
parents: 2936
diff changeset
88 <span class="tooltip" date="${last_change}" title="${h.tooltip(h.fmt_date(last_change))}">${h.age(last_change)}</span>
d439d408b415 Update last_change from VCS data on request.
Marcin Kuzminski <marcin@python-works.com>
parents: 2936
diff changeset
89 </%def>
2304
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
90
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
91 <%def name="revision(name,rev,tip,author,last_msg)">
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
92 <div>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
93 %if rev >= 0:
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
94 <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>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
95 %else:
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
96 ${_('No changesets yet')}
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
97 %endif
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
98 </div>
f1b76a558a66 Renaming template directory _data_table to data_table so it can be scanned by extract_messages
Vincent Duvert <vincent@duvert.net>
parents:
diff changeset
99 </%def>
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
100
2936
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
101 <%def name="rss(name)">
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
102 %if c.rhodecode_user.username != 'default':
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
103 <a title="${_('Subscribe to %s rss feed')% name}" href="${h.url('rss_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"><i class="icon-rss-sign" style="color: #fa9b39"></i></a>
2936
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
104 %else:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
105 <a title="${_('Subscribe to %s rss feed')% name}" href="${h.url('rss_feed_home',repo_name=name)}"><i class="icon-rss-sign" style="color: #fa9b39"></i></a>
2936
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
106 %endif
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
107 </%def>
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
108
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
109 <%def name="atom(name)">
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
110 %if c.rhodecode_user.username != 'default':
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
111 <a title="${_('Subscribe to %s atom feed')% name}" href="${h.url('atom_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"><i class="icon-rss-sign" style="color: #fa9b39"></i></a>
2936
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
112 %else:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
113 <a title="${_('Subscribe to %s atom feed')% name}" href="${h.url('atom_feed_home',repo_name=name)}"><i class="icon-rss-sign" style="color: #fa9b39"></i></a>
2936
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
114 %endif
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
115 </%def>
62e493c7f436 Added lightweight dashboard option. ref #500
Marcin Kuzminski <marcin@python-works.com>
parents: 2674
diff changeset
116
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
117 <%def name="user_gravatar(email, size=24)">
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
118 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(email, size)}"/> </div>
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
119 </%def>
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
120
3245
8f3cc21d83e6 fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 3168
diff changeset
121 <%def name="repo_actions(repo_name, super_user=True)">
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
122 <div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
123 <div style="float:left; margin-right:5px;" class="grid_edit">
3245
8f3cc21d83e6 fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 3168
diff changeset
124 <a href="${h.url('edit_repo',repo_name=repo_name)}" title="${_('edit')}">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
125 <i class="icon-pencil"></i> ${h.submit('edit_%s' % repo_name,_('edit'),class_="action_button")}
3245
8f3cc21d83e6 fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 3168
diff changeset
126 </a>
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
127 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
128 <div style="float:left" class="grid_delete">
3245
8f3cc21d83e6 fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 3168
diff changeset
129 ${h.form(h.url('repo', repo_name=repo_name),method='delete')}
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
130 <i class="icon-remove-sign" style="color:#FF4444"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
131 ${h.submit('remove_%s' % repo_name,_('delete'),class_="action_button",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
132 onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")}
3245
8f3cc21d83e6 fixes issue #739 Delete/Edit repositories should only point to admin links if the user is an super admin.
Marcin Kuzminski <marcin@python-works.com>
parents: 3168
diff changeset
133 ${h.end_form()}
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
134 </div>
3168
2fb94c52e20e whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3154
diff changeset
135 </div>
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
136 </%def>
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
137
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
138 <%def name="repo_state(repo_state)">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
139 <div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
140 %if repo_state == 'repo_state_pending':
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
141 <div class="btn btn-mini btn-info disabled">${_('Creating')}</div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
142 %elif repo_state == 'repo_state_created':
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
143 <div class="btn btn-mini btn-success disabled">${_('Created')}</div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
144 %else:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
145 <div class="btn btn-mini btn-danger disabled" title="${repo_state}">invalid</div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
146 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
147 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
148 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
149
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
150 <%def name="user_actions(user_id, username)">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
151 <div style="float:left" class="grid_edit">
3800
6e38d1070530 make user listing have edit button to be consistent
Marcin Kuzminski <marcin@python-works.com>
parents: 3654
diff changeset
152 <a href="${h.url('edit_user',id=user_id)}" title="${_('edit')}">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
153 <i class="icon-pencil"></i> ${h.submit('edit_%s' % username,_('edit'),class_="action_button")}
3800
6e38d1070530 make user listing have edit button to be consistent
Marcin Kuzminski <marcin@python-works.com>
parents: 3654
diff changeset
154 </a>
6e38d1070530 make user listing have edit button to be consistent
Marcin Kuzminski <marcin@python-works.com>
parents: 3654
diff changeset
155 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
156 <div style="float:left" class="grid_delete">
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
157 ${h.form(h.url('delete_user', id=user_id),method='delete')}
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
158 <i class="icon-remove-sign" style="color:#FF4444"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
159 ${h.submit('remove_',_('delete'),id="remove_user_%s" % user_id, class_="action_button",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
160 onclick="return confirm('"+_('Confirm to delete this user: %s') % username+"');")}
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
161 ${h.end_form()}
3800
6e38d1070530 make user listing have edit button to be consistent
Marcin Kuzminski <marcin@python-works.com>
parents: 3654
diff changeset
162 </div>
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
163 </%def>
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
164
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
165 <%def name="user_group_actions(user_group_id, user_group_name)">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
166 <div style="float:left" class="grid_edit">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
167 <a href="${h.url('edit_users_group', id=user_group_id)}" title="${_('Edit')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
168 <i class="icon-pencil"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
169 ${h.submit('edit_%s' % user_group_name,_('edit'),class_="action_button", id_="submit_user_group_edit")}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
170 </a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
171 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
172 <div style="float:left" class="grid_delete">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
173 ${h.form(h.url('users_group', id=user_group_id),method='delete')}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
174 <i class="icon-remove-sign" style="color:#FF4444"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
175 ${h.submit('remove_',_('delete'),id="remove_group_%s" % user_group_id, class_="action_button",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
176 onclick="return confirm('"+_('Confirm to delete this user group: %s') % user_group_name+"');")}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
177 ${h.end_form()}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
178 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
179 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
180
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
181 <%def name="repo_group_actions(repo_group_id, repo_group_name, gr_count)">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
182 <div style="float:left" class="grid_edit">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
183 <a href="${h.url('edit_repo_group',group_name=repo_group_name)}" title="${_('Edit')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
184 <i class="icon-pencil"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
185 ${h.submit('edit_%s' % repo_group_name, _('edit'),class_="action_button")}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
186 </a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
187 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
188 <div style="float:left" class="grid_delete">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
189 ${h.form(h.url('repos_group', group_name=repo_group_name),method='delete')}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
190 <i class="icon-remove-sign" style="color:#FF4444"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
191 ${h.submit('remove_%s' % repo_group_name,_('delete'),class_="action_button",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
192 onclick="return confirm('"+ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)+"');")}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
193 ${h.end_form()}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
194 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
195 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
196
2663
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
197 <%def name="user_name(user_id, username)">
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
198 ${h.link_to(username,h.url('edit_user', id=user_id))}
cc8d7d450d15 No more raw html inside users controller.
Marcin Kuzminski <marcin@python-works.com>
parents: 2304
diff changeset
199 </%def>
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
200
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
201 <%def name="repo_group_name(repo_group_name, children_groups)">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
202 <div style="white-space: nowrap">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
203 <a href="${h.url('repos_group_home',group_name=repo_group_name)}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
204 <i class="icon-folder-close" title="${_('Repository group')}"></i> ${h.literal(' &raquo; '.join(children_groups))}</a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
205 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
206 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
207
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
208 <%def name="user_group_name(user_group_id, user_group_name)">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
209 <div style="white-space: nowrap">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
210 <a href="${h.url('edit_users_group', id=user_group_id)}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
211 <i class="icon-group" title="${_('User group')}"></i> ${user_group_name}</a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
212 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
213 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4003
diff changeset
214
3154
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
215 <%def name="toggle_follow(repo_id)">
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
216 <span id="follow_toggle_${repo_id}" class="following" title="${_('Stop following this repository')}"
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
217 onclick="javascript:toggleFollowingRepo(this, ${repo_id},'${str(h.get_token())}')">
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
218 </span>
0226b6d6b2b5 Use common function for generation of grid data
Marcin Kuzminski <marcin@python-works.com>
parents: 2937
diff changeset
219 </%def>