Show More
@@ -1,57 +1,57 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 | ${h.form(h.current_route_path(request), method='GET', id='at_rev_form')} |
|
5 | ${h.form(h.current_route_path(request), method='GET', id='at_rev_form')} | |
6 | <div class="info_box"> |
|
6 | <div class="info_box"> | |
7 | ${h.hidden('refs_filter')} |
|
7 | ${h.hidden('refs_filter')} | |
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="pjax-link ${'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="pjax-link ${'disabled' if c.url_prev == '#' else ''}" href="${c.url_prev}" title="${_('Previous commit')}"><i class="icon-left"></i></a> | |
10 | </div> |
|
10 | </div> | |
11 | <div class="info_box_elem">${h.text('at_rev',value=c.commit.idx)}</div> |
|
11 | <div class="info_box_elem">${h.text('at_rev',value=c.commit.idx)}</div> | |
12 | <div class="info_box_elem next"> |
|
12 | <div class="info_box_elem next"> | |
13 | <a id="next_commit_link" data-commit-id="${c.next_commit.raw_id}" class="pjax-link ${'disabled' if c.url_next == '#' else ''}" href="${c.url_next}" title="${_('Next commit')}"><i class="icon-right"></i></a> |
|
13 | <a id="next_commit_link" data-commit-id="${c.next_commit.raw_id}" class="pjax-link ${'disabled' if c.url_next == '#' else ''}" href="${c.url_next}" title="${_('Next commit')}"><i class="icon-right"></i></a> | |
14 | </div> |
|
14 | </div> | |
15 | </div> |
|
15 | </div> | |
16 | ${h.end_form()} |
|
16 | ${h.end_form()} | |
17 |
|
17 | |||
18 | <div id="search_activate_id" class="search_activate"> |
|
18 | <div id="search_activate_id" class="search_activate"> | |
19 | <a class="btn btn-default" id="filter_activate" href="javascript:void(0)">${_('Search File List')}</a> |
|
19 | <a class="btn btn-default" id="filter_activate" href="javascript:void(0)">${_('Search File List')}</a> | |
20 | </div> |
|
20 | </div> | |
21 | <div id="search_deactivate_id" class="search_activate hidden"> |
|
21 | <div id="search_deactivate_id" class="search_activate hidden"> | |
22 | <a class="btn btn-default" id="filter_deactivate" href="javascript:void(0)">${_('Close File List')}</a> |
|
22 | <a class="btn btn-default" id="filter_deactivate" href="javascript:void(0)">${_('Close File List')}</a> | |
23 | </div> |
|
23 | </div> | |
24 | % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
|
24 | % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): | |
25 | <div title="${_('Add New File')}" class="btn btn-primary new-file"> |
|
25 | <div title="${_('Add New File')}" class="btn btn-primary new-file"> | |
26 | <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')}"> |
|
26 | <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')}"> | |
27 | ${_('Add File')}</a> |
|
27 | ${_('Add File')}</a> | |
28 | </div> |
|
28 | </div> | |
29 | % endif |
|
29 | % endif | |
30 | % if c.enable_downloads: |
|
30 | % if c.enable_downloads: | |
31 | <% at_path = '{}.zip'.format(request.GET.get('at') or c.commit.raw_id[:6]) %> |
|
31 | <% at_path = '{}.zip'.format(request.GET.get('at') or c.commit.raw_id[:6]) %> | |
32 | <div title="${_('Download tree at {}').format(at_path)}" class="btn btn-default new-file"> |
|
32 | <div title="${_('Download tree at {}').format(at_path)}" class="btn btn-default new-file"> | |
33 |
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname= |
|
33 | <a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id))}"> | |
34 | ${_('Download tree at {}').format(at_path)} |
|
34 | ${_('Download tree at {}').format(at_path)} | |
35 | </a> |
|
35 | </a> | |
36 | </div> |
|
36 | </div> | |
37 | % endif |
|
37 | % endif | |
38 | </div> |
|
38 | </div> | |
39 |
|
39 | |||
40 | <div class="browser-search"> |
|
40 | <div class="browser-search"> | |
41 | <div class="node-filter"> |
|
41 | <div class="node-filter"> | |
42 | <div class="node_filter_box hidden" id="node_filter_box_loading" >${_('Loading file list...')}</div> |
|
42 | <div class="node_filter_box hidden" id="node_filter_box_loading" >${_('Loading file list...')}</div> | |
43 | <div class="node_filter_box hidden" id="node_filter_box" > |
|
43 | <div class="node_filter_box hidden" id="node_filter_box" > | |
44 | <div class="node-filter-path">${h.get_last_path_part(c.file)}/</div> |
|
44 | <div class="node-filter-path">${h.get_last_path_part(c.file)}/</div> | |
45 | <div class="node-filter-input"> |
|
45 | <div class="node-filter-input"> | |
46 | <input class="init" type="text" name="filter" size="25" id="node_filter" autocomplete="off"> |
|
46 | <input class="init" type="text" name="filter" size="25" id="node_filter" autocomplete="off"> | |
47 | </div> |
|
47 | </div> | |
48 | </div> |
|
48 | </div> | |
49 | </div> |
|
49 | </div> | |
50 | </div> |
|
50 | </div> | |
51 | </div> |
|
51 | </div> | |
52 | ## file tree is computed from caches, and filled in |
|
52 | ## file tree is computed from caches, and filled in | |
53 | <div id="file-tree"> |
|
53 | <div id="file-tree"> | |
54 | ${c.file_tree |n} |
|
54 | ${c.file_tree |n} | |
55 | </div> |
|
55 | </div> | |
56 |
|
56 | |||
57 | </div> |
|
57 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now