##// END OF EJS Templates
files: allow partial tree downloads
files: allow partial tree downloads

File last commit:

r3709:d3048a59 new-ui
r3709:d3048a59 new-ui
Show More
files_browser.mako
64 lines | 2.8 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282
<div id="codeblock" class="browserblock">
<div class="browser-header">
<div class="browser-nav">
gravatars: reduce the size of fonts inside the initials gravatar
r3654
templating: use .mako as extensions for template files.
r1282 <div class="info_box">
gravatars: reduce the size of fonts inside the initials gravatar
r3654
templating: use .mako as extensions for template files.
r1282 <div class="info_box_elem previous">
files: made file filter an active input instead of a button.
r3694 <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>
templating: use .mako as extensions for template files.
r1282 </div>
gravatars: reduce the size of fonts inside the initials gravatar
r3654
${h.hidden('refs_filter')}
templating: use .mako as extensions for template files.
r1282 <div class="info_box_elem next">
files: made file filter an active input instead of a button.
r3694 <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>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
% if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
files: updated based on new design
r3706 <div>
<a class="btn btn-primary new-file" 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')}">
${_('Upload File')}
</a>
<a class="btn btn-primary new-file" 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')}">
${_('Add File')}
</a>
templating: use .mako as extensions for template files.
r1282 </div>
% endif
Liviu
files view changes: moved add file, download and search to the right, added paddings and margins
r3695
dan
Files: expose downloads onto files view
r3374 % if c.enable_downloads:
files: change download title for button
r3700 <% at_path = '{}'.format(request.GET.get('at') or c.commit.raw_id[:6]) %>
<div class="btn btn-default new-file">
files: updated based on new design
r3706 % if c.f_path == '/':
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id))}">
${_('Download full tree ZIP')}
</a>
% else:
files: allow partial tree downloads
r3709 <a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id), _query={'at_path':c.f_path})}">
files: updated based on new design
r3706 ${_('Download this tree ZIP')}
</a>
% endif
dan
Files: expose downloads onto files view
r3374 </div>
% endif
files: made file filter an active input instead of a button.
r3694
Liviu
files view changes: moved add file, download and search to the right, added paddings and margins
r3695 <div class="files-quick-filter">
<ul class="files-filter-box">
<li class="files-filter-box-path">
<i class="icon-search"></i>
</li>
<li class="files-filter-box-input">
<input onkeydown="NodeFilter.initFilter(event)" class="init" type="text" placeholder="Quick filter" name="filter" size="25" id="node_filter" autocomplete="off">
</li>
</ul>
</div>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
files: updated based on new design
r3706
templating: use .mako as extensions for template files.
r1282 ## file tree is computed from caches, and filled in
<div id="file-tree">
files: ported repository files controllers to pyramid views.
r1927 ${c.file_tree |n}
templating: use .mako as extensions for template files.
r1282 </div>
</div>