Mercurial > kallithea
annotate rhodecode/templates/_data_table/_dt_elements.html @ 2212:727e1f922a89 beta
exclude the actual grep command in memwatch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 30 Apr 2012 14:10:58 +0200 |
parents | 19b4e2832629 |
children |
rev | line source |
---|---|
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## DATA TABLE RE USABLE ELEMENTS |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 ## usage: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 ## <%namespace name="dt" file="/_data_table/_dt_elements.html"/> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <%def name="quick_menu(repo_name)"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <ul class="menu_items hidden"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 <li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo_name)}"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 <span class="icon"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 </span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
13 <span>${_('Summary')}</span> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
14 </a> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 </li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 <li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo_name)}"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <span class="icon"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 </span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
21 <span>${_('Changelog')}</span> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
22 </a> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 </li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 <li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo_name)}"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 <span class="icon"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 </span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
29 <span>${_('Files')}</span> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
30 </a> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 </li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 <li> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
34 <span class="icon"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" /> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 </span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
37 <span>${_('Fork')}</span> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
38 </a> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
39 </li> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 </ul> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 </%def> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
42 |
2159
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
43 <%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)"> |
2133
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
44 <% |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
45 def get_name(name,short_name=short_name): |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
46 if short_name: |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
47 return name.split('/')[-1] |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
48 else: |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
49 return name |
e1a54d600c89
#402 removed group prefix from repository name when listing repositories inside a group
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
50 %> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
51 <div style="white-space: nowrap"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
52 ##TYPE OF REPO |
1959
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
53 %if h.is_hg(rtype): |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
54 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> |
1959
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
55 %elif h.is_git(rtype): |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
57 %endif |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
58 |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 ##PRIVATE/PUBLIC |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 %if private: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 %else: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
64 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
65 |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
66 ##NAME |
2159
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
67 %if admin: |
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
68 ${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")} |
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
69 %else: |
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
70 ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")} |
19b4e2832629
fixes #407 wrong url to edit repo on admin page
Marcin Kuzminski <marcin@python-works.com>
parents:
2133
diff
changeset
|
71 %endif |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
72 %if fork_of: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
73 <a href="${h.url('summary_home',repo_name=fork_of)}"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
74 <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
75 %endif |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
76 </div> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
77 </%def> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
78 |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
79 |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
80 |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
81 <%def name="revision(name,rev,tip,author,last_msg)"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
82 <div> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
83 %if rev >= 0: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
84 <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> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
85 %else: |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
86 ${_('No changesets yet')} |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
87 %endif |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
88 </div> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
89 </%def> |