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