Files
@ ae5ac36cdf83
Branch filter:
Location: kallithea/rhodecode/templates/files/files_browser.html - annotation
ae5ac36cdf83
4.9 KiB
text/html
pull request: use unionrepo instead of outgoing
This makes it possible to look the 'moving target' symbols up in the right repo.
Using a revset with the right revisions also removes the need for pruning
changesets that are outside the requested range.
It will also not be confused by changesets that for some reason has been pulled
to the repo but haven't been merged yet. They are going to be 'merged' by the
'pull' request and should thus be a part of what is reviewed.
This makes it possible to look the 'moving target' symbols up in the right repo.
Using a revset with the right revisions also removes the need for pruning
changesets that are outside the requested range.
It will also not be confused by changesets that for some reason has been pulled
to the repo but haven't been merged yet. They are going to be 'merged' by the
'pull' request and should thus be a part of what is reviewed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | 1e757ac98988 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 1e757ac98988 1e757ac98988 3bc10f10f2f6 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 8585fbf3ed06 7b67b0dcad6d 60a00fd76d58 7b67b0dcad6d f91d3f9b7230 6ff50754d22d 60a00fd76d58 92f0065ba238 f91d3f9b7230 8585fbf3ed06 8585fbf3ed06 8585fbf3ed06 203af05539e0 f91d3f9b7230 f91d3f9b7230 8585fbf3ed06 322b53be49cc f91d3f9b7230 b4f401524060 b4f401524060 c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af f91d3f9b7230 c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af c20adbaf16af b4f401524060 c20adbaf16af f91d3f9b7230 b4f401524060 b4f401524060 b4f401524060 49dc09e9f076 49dc09e9f076 49dc09e9f076 49dc09e9f076 49dc09e9f076 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 184557472f5c b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 3c0cae9b58cf b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 39b49c999efb 39b49c999efb b4f401524060 b4f401524060 b4f401524060 b4f401524060 c20adbaf16af c20adbaf16af c20adbaf16af b4f401524060 b4f401524060 f91d3f9b7230 | <%def name="file_class(node)">
%if node.is_file():
<%return "browser-file" %>
%else:
<%return "browser-dir"%>
%endif
</%def>
<div id="body" class="browserblock">
<div class="browser-header">
<div class="browser-nav">
${h.form(h.url.current())}
<div class="info_box">
<span class="rev">${_('view')}@rev</span>
<a class="ui-btn ypjax-link" href="${c.url_prev}" title="${_('previous revision')}">«</a>
${h.text('at_rev',value=c.changeset.revision,size=5)}
<a class="ui-btn ypjax-link" href="${c.url_next}" title="${_('next revision')}">»</a>
## ${h.submit('view',_('view'),class_="ui-btn")}
</div>
${h.end_form()}
</div>
<div class="browser-branch">
${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)}
<label>${_('follow current branch')}</label>
</div>
<div class="browser-search">
<div id="search_activate_id" class="search_activate">
<a class="ui-btn" id="filter_activate" href="#">${_('search file list')}</a>
</div>
% if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
<div id="add_node_id" class="add_node">
<a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a>
</div>
% endif
<div>
<div id="node_filter_box_loading" style="display:none">${_('Loading file list...')}</div>
<div id="node_filter_box" style="display:none">
${h.files_breadcrumbs(c.repo_name,c.changeset.raw_id,c.file.path)}/<input class="init" type="text" value="type to search..." name="filter" size="25" id="node_filter" autocomplete="off">
</div>
</div>
</div>
</div>
<div class="browser-body">
<table class="code-browser">
<thead>
<tr>
<th>${_('Name')}</th>
<th>${_('Size')}</th>
<th>${_('Mimetype')}</th>
<th>${_('Last Revision')}</th>
<th>${_('Last modified')}</th>
<th>${_('Last commiter')}</th>
</tr>
</thead>
<tbody id="tbody">
%if c.file.parent:
<tr class="parity0">
<td>
${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.file.parent.path),class_="browser-dir ypjax-link")}
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
%endif
%for cnt,node in enumerate(c.file):
<tr class="parity${cnt%2}">
<td>
%if node.is_submodule():
${h.link_to(node.name,node.url or '#',class_="submodule-dir ypjax-link")}
%else:
${h.link_to(node.name, h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=h.safe_unicode(node.path)),class_=file_class(node)+" ypjax-link")}
%endif:
</td>
<td>
%if node.is_file():
${h.format_byte_size(node.size,binary=True)}
%endif
</td>
<td>
%if node.is_file():
${node.mimetype}
%endif
</td>
<td>
%if node.is_file():
<div class="tooltip" title="${h.tooltip(node.last_changeset.message)}">
<pre>${'r%s:%s' % (node.last_changeset.revision,node.last_changeset.short_id)}</pre>
</div>
%endif
</td>
<td>
%if node.is_file():
<span class="tooltip" title="${h.tooltip(h.fmt_date(node.last_changeset.date))}">
${h.age(node.last_changeset.date)}</span>
%endif
</td>
<td>
%if node.is_file():
<span title="${node.last_changeset.author}">
${h.person(node.last_changeset.author)}
</span>
%endif
</td>
</tr>
%endfor
</tbody>
<tbody id="tbody_filtered" style="display:none">
</tbody>
</table>
</div>
</div>
|