Show More
@@ -1,43 +1,42 b'' | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('Repository managment')} |
|
4 | ${_('Repository managment')} | |
5 | </%def> |
|
5 | </%def> | |
6 | <%def name="breadcrumbs()"> |
|
6 | <%def name="breadcrumbs()"> | |
7 | ${h.link_to(u'Home',h.url('/'))} |
|
7 | ${h.link_to(u'Home',h.url('/'))} | |
8 | / |
|
8 | / | |
9 | ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))} |
|
9 | ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))} | |
10 | / |
|
10 | / | |
11 | ${_('files')} |
|
11 | ${_('files')} | |
12 | </%def> |
|
12 | </%def> | |
13 | <%def name="page_nav()"> |
|
13 | <%def name="page_nav()"> | |
14 | <form action="log"> |
|
14 | <form action="log"> | |
15 | <dl class="search"> |
|
15 | <dl class="search"> | |
16 | <dt><label>Search: </label></dt> |
|
16 | <dt><label>Search: </label></dt> | |
17 | <dd><input type="text" name="rev" /></dd> |
|
17 | <dd><input type="text" name="rev" /></dd> | |
18 | </dl> |
|
18 | </dl> | |
19 | </form> |
|
19 | </form> | |
20 |
|
20 | |||
21 | ${self.menu('files')} |
|
21 | ${self.menu('files')} | |
22 | </%def> |
|
22 | </%def> | |
23 | <%def name="css()"> |
|
23 | <%def name="css()"> | |
24 | <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> |
|
24 | <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> | |
25 | <link rel="stylesheet" href="/css/pygments.css" type="text/css" /> |
|
25 | <link rel="stylesheet" href="/css/pygments.css" type="text/css" /> | |
26 | </%def> |
|
26 | </%def> | |
27 | <%def name="main()"> |
|
27 | <%def name="main()"> | |
28 |
|
||||
29 | <h2 class="no-link no-border">${_('Files')}</h2> |
|
28 | <h2 class="no-link no-border">${_('Files')}</h2> | |
30 | <div id="files_data"> |
|
29 | <div id="files_data"> | |
31 | %if c.files_list: |
|
30 | %if c.files_list: | |
32 | <h2>${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}</h2> |
|
31 | <h2>${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}</h2> | |
33 | %if c.files_list.is_dir(): |
|
32 | %if c.files_list.is_dir(): | |
34 | <%include file='files_browser.html'/> |
|
33 | <%include file='files_browser.html'/> | |
35 | %else: |
|
34 | %else: | |
36 | <%include file='files_source.html'/> |
|
35 | <%include file='files_source.html'/> | |
37 | %endif |
|
36 | %endif | |
38 | %else: |
|
37 | %else: | |
39 | <h2><a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> ${_('No files at given path')}: "${c.f_path or "/"}" </h2> |
|
38 | <h2><a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> ${_('No files at given path')}: "${c.f_path or "/"}" </h2> | |
40 | %endif |
|
39 | %endif | |
41 |
|
40 | |||
42 | </div> |
|
41 | </div> | |
43 | </%def> No newline at end of file |
|
42 | </%def> |
@@ -1,66 +1,66 b'' | |||||
1 | <%def name="file_class(node)"> |
|
1 | <%def name="file_class(node)"> | |
2 | %if node.is_file(): |
|
2 | %if node.is_file(): | |
3 | <%return "browser-file" %> |
|
3 | <%return "browser-file" %> | |
4 | %else: |
|
4 | %else: | |
5 | <%return "browser-dir"%> |
|
5 | <%return "browser-dir"%> | |
6 | %endif |
|
6 | %endif | |
7 | </%def> |
|
7 | </%def> | |
8 | <div id="body" class="browserblock"> |
|
8 | <div id="body" class="browserblock"> | |
9 | <div class="browser-header"> |
|
9 | <div class="browser-header"> | |
10 | ${h.form(h.url.current())} |
|
10 | ${h.form(h.url.current())} | |
11 | <span>${_('view')}@rev <a style="font-size: 1.3em" href="${c.url_prev}">«</a>${h.text('at_rev',value=c.rev_nr,size='5')}<a style="font-size: 1.3em" href="${c.url_next}">»</a></span> |
|
11 | <span>${_('view')}@rev <a style="font-size: 1.3em" href="${c.url_prev}">«</a>${h.text('at_rev',value=c.rev_nr,size='5')}<a style="font-size: 1.3em" href="${c.url_next}">»</a></span> | |
12 | ${h.submit('view','view')} |
|
12 | ${h.submit('view','view')} | |
13 | ${h.end_form()} |
|
13 | ${h.end_form()} | |
14 | </div> |
|
14 | </div> | |
15 | <div class="browser-body"> |
|
15 | <div class="browser-body"> | |
16 | <table class="code-browser"> |
|
16 | <table class="code-browser"> | |
17 | <thead> |
|
17 | <thead> | |
18 | <tr> |
|
18 | <tr> | |
19 | <th>${_('Name')}</th> |
|
19 | <th>${_('Name')}</th> | |
20 | <th>${_('Size')}</th> |
|
20 | <th>${_('Size')}</th> | |
21 | <th>${_('Revision')}</th> |
|
21 | <th>${_('Revision')}</th> | |
22 | <th>${_('Last modified')}</th> |
|
22 | <th>${_('Last modified')}</th> | |
23 | <th>${_('Last commiter')}</th> |
|
23 | <th>${_('Last commiter')}</th> | |
24 | </tr> |
|
24 | </tr> | |
25 | </thead> |
|
25 | </thead> | |
26 | <tr class="parity0"> |
|
26 | <tr class="parity0"> | |
27 | <td> |
|
27 | <td> | |
28 | % if c.files_list.parent: |
|
28 | % if c.files_list.parent: | |
29 | ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")} |
|
29 | ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")} | |
30 | %endif |
|
30 | %endif | |
31 | </td> |
|
31 | </td> | |
32 | <td></td> |
|
32 | <td></td> | |
33 | <td></td> |
|
33 | <td></td> | |
34 | <td></td> |
|
34 | <td></td> | |
35 | <td></td> |
|
35 | <td></td> | |
36 | </tr> |
|
36 | </tr> | |
37 | %for cnt,node in enumerate(c.files_list,1): |
|
37 | %for cnt,node in enumerate(c.files_list,1): | |
38 | <tr class="parity${cnt%2}"> |
|
38 | <tr class="parity${cnt%2}"> | |
39 | <td> |
|
39 | <td> | |
40 | ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))} |
|
40 | ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))} | |
41 | </td> |
|
41 | </td> | |
42 | <td> |
|
42 | <td> | |
43 | %if node.is_file(): |
|
43 | %if node.is_file(): | |
44 |
${h.f |
|
44 | ${h.format_byte_size(node.size,binary=True)} | |
45 | %endif |
|
45 | %endif | |
46 | </td> |
|
46 | </td> | |
47 | <td> |
|
47 | <td> | |
48 | %if node.is_file(): |
|
48 | %if node.is_file(): | |
49 | ${node.last_changeset.revision} |
|
49 | ${node.last_changeset.revision} | |
50 | %endif |
|
50 | %endif | |
51 | </td> |
|
51 | </td> | |
52 | <td> |
|
52 | <td> | |
53 | %if node.is_file(): |
|
53 | %if node.is_file(): | |
54 | ${node.last_changeset.date} |
|
54 | ${node.last_changeset.date} | |
55 | %endif |
|
55 | %endif | |
56 | </td> |
|
56 | </td> | |
57 | <td> |
|
57 | <td> | |
58 | %if node.is_file(): |
|
58 | %if node.is_file(): | |
59 | ${node.last_changeset.author} |
|
59 | ${node.last_changeset.author} | |
60 | %endif |
|
60 | %endif | |
61 | </td> |
|
61 | </td> | |
62 | </tr> |
|
62 | </tr> | |
63 | %endfor |
|
63 | %endfor | |
64 | </table> |
|
64 | </table> | |
65 | </div> |
|
65 | </div> | |
66 | </div> No newline at end of file |
|
66 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now