Show More
@@ -1,53 +1,53 b'' | |||
|
1 | 1 | |
|
2 | 2 | <div id="codeblock" class="browserblock"> |
|
3 | 3 | <div class="browser-header"> |
|
4 | 4 | <div class="browser-nav"> |
|
5 | 5 | |
|
6 | 6 | <div class="info_box"> |
|
7 | 7 | |
|
8 | 8 | <div class="info_box_elem previous"> |
|
9 | 9 | <a id="prev_commit_link" data-commit-id="${c.prev_commit.raw_id}" class=" ${('disabled' if c.url_prev == '#' else '')}" href="${c.url_prev}" title="${_('Previous commit')}"><i class="icon-left"></i></a> |
|
10 | 10 | </div> |
|
11 | 11 | |
|
12 | 12 | ${h.hidden('refs_filter')} |
|
13 | 13 | |
|
14 | 14 | <div class="info_box_elem next"> |
|
15 | 15 | <a id="next_commit_link" data-commit-id="${c.next_commit.raw_id}" class=" ${('disabled' if c.url_next == '#' else '')}" href="${c.url_next}" title="${_('Next commit')}"><i class="icon-right"></i></a> |
|
16 | 16 | </div> |
|
17 | 17 | </div> |
|
18 | 18 | |
|
19 | 19 | % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
|
20 | 20 | <div title="${_('Add New File')}" class="btn btn-primary new-file"> |
|
21 | 21 | <a href="${h.route_path('repo_files_add_file',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path, _anchor='edit')}"> |
|
22 | 22 | ${_('Add File')}</a> |
|
23 | 23 | </div> |
|
24 | 24 | % endif |
|
25 | 25 | |
|
26 | 26 | % if c.enable_downloads: |
|
27 |
<% at_path = '{} |
|
|
28 |
<div |
|
|
27 | <% at_path = '{}'.format(request.GET.get('at') or c.commit.raw_id[:6]) %> | |
|
28 | <div class="btn btn-default new-file"> | |
|
29 | 29 | <a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id))}"> |
|
30 |
${_('Download |
|
|
30 | ${_('Download ZIP @ ')} <code>${at_path}</code> | |
|
31 | 31 | </a> |
|
32 | 32 | </div> |
|
33 | 33 | % endif |
|
34 | 34 | |
|
35 | 35 | <div class="files-quick-filter"> |
|
36 | 36 | <ul class="files-filter-box"> |
|
37 | 37 | <li class="files-filter-box-path"> |
|
38 | 38 | <i class="icon-search"></i> |
|
39 | 39 | </li> |
|
40 | 40 | <li class="files-filter-box-input"> |
|
41 | 41 | <input onkeydown="NodeFilter.initFilter(event)" class="init" type="text" placeholder="Quick filter" name="filter" size="25" id="node_filter" autocomplete="off"> |
|
42 | 42 | </li> |
|
43 | 43 | </ul> |
|
44 | 44 | </div> |
|
45 | 45 | </div> |
|
46 | 46 | |
|
47 | 47 | </div> |
|
48 | 48 | ## file tree is computed from caches, and filled in |
|
49 | 49 | <div id="file-tree"> |
|
50 | 50 | ${c.file_tree |n} |
|
51 | 51 | </div> |
|
52 | 52 | |
|
53 | 53 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now