Mercurial > kallithea
annotate rhodecode/templates/files/files_browser.html @ 708:b9bbc0d6e9f3 beta
added cache reset, stats reset, and delete into repository settings in admin.
Some small template fixes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 18 Nov 2010 01:55:51 +0100 |
parents | dff6d5cb8bba |
children | 9279dfedcf93 |
rev | line source |
---|---|
128
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 <%def name="file_class(node)"> |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 %if node.is_file(): |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <%return "browser-file" %> |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 %else: |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <%return "browser-dir"%> |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 %endif |
9deb6f1d5b90
Implemented file history.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 </%def> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
8 <div id="body" class="browserblock"> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
9 <div class="browser-header"> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
10 ${h.form(h.url.current())} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
11 <div class="info_box"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
12 <span >${_('view')}@rev</span> |
644
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
13 <a href="${c.url_prev}" title="${_('previous revision')}">«</a> |
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
14 ${h.text('at_rev',value=c.changeset.revision,size=3)} |
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
15 <a href="${c.url_next}" title="${_('next revision')}">»</a> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
16 ${h.submit('view','view')} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
17 </div> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
18 ${h.end_form()} |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
19 </div> |
149
b3c93efd1c97
Updated template for summary (archives links)
Marcin Kuzminski <marcin@python-works.com>
parents:
145
diff
changeset
|
20 <div class="browser-body"> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
21 <table class="code-browser"> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
22 <thead> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
23 <tr> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
24 <th>${_('Name')}</th> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
25 <th>${_('Size')}</th> |
495
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
26 <th>${_('Mimetype')}</th> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
27 <th>${_('Revision')}</th> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
28 <th>${_('Last modified')}</th> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
29 <th>${_('Last commiter')}</th> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
30 </tr> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
31 </thead> |
497
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
32 |
633
fcf599cd3404
Move changes for git implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
583
diff
changeset
|
33 %if c.files_list.parent: |
497
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
34 <tr class="parity0"> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
35 <td> |
644
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
36 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.files_list.parent.path),class_="browser-dir")} |
497
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
37 </td> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
38 <td></td> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
39 <td></td> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
40 <td></td> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
41 <td></td> |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
42 <td></td> |
633
fcf599cd3404
Move changes for git implementation
Marcin Kuzminski <marcin@python-works.com>
parents:
583
diff
changeset
|
43 </tr> |
497
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
44 %endif |
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
45 |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
46 %for cnt,node in enumerate(c.files_list,1): |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
47 <tr class="parity${cnt%2}"> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
48 <td> |
644
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
49 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=node.path),class_=file_class(node))} |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
50 </td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
51 <td> |
583
95b746f2f0ed
fixed nasty bug when browsing on renames.
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
52 %if node.is_file(): |
497
fb0c3af6031b
Implemented locking for task, to prevent for running the same tasks,
Marcin Kuzminski <marcin@python-works.com>
parents:
495
diff
changeset
|
53 ${h.format_byte_size(node.size,binary=True)} |
583
95b746f2f0ed
fixed nasty bug when browsing on renames.
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
54 %endif |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
55 </td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
56 <td> |
495
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
57 %if node.is_file(): |
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
58 ${node.mimetype} |
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
59 %endif |
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
60 </td> |
15f837c62fa5
added mimetypes to files
Marcin Kuzminski <marcin@python-works.com>
parents:
416
diff
changeset
|
61 <td> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
62 %if node.is_file(): |
644
c8bd0e6cc3da
some changes for #45.
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
63 <span class="tooltip" tooltip_title="${node.last_changeset.raw_id}">${node.last_changeset.revision}</span> |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
64 %endif |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
65 </td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
66 <td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
67 %if node.is_file(): |
668
dff6d5cb8bba
fixed deletion of repository on filesystem, works based on scm type for git and hg.
Marcin Kuzminski <marcin@python-works.com>
parents:
644
diff
changeset
|
68 ${node.last_changeset.date} - ${h.age(node.last_changeset.date)} |
144
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
69 %endif |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
70 </td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
71 <td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
72 %if node.is_file(): |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
73 ${node.last_changeset.author} |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
74 %endif |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
75 </td> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
76 </tr> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
77 %endfor |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
78 </table> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
79 </div> |
ea89ac73bef8
Update css +file browsing and diffs
Marcin Kuzminski <marcin@python-works.com>
parents:
128
diff
changeset
|
80 </div> |