##// END OF EJS Templates
release: Finish preparation for 4.18.0
release: Finish preparation for 4.18.0

File last commit:

r4032:07c1bd09 default
r4182:f37a3126 v4.18.0 stable
Show More
files_browser_tree.mako
96 lines | 3.5 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / files / files_browser_tree.mako
hovercards: added commit hovercard for files, and dashboard views.
r4032 <%namespace name="base" file="/base/base.mako"/>
ui: new file tree switcher...
r3655 <%
if request.GET.get('at'):
query={'at': request.GET.get('at')}
else:
query=None
%>
<div id="file-tree-wrapper" class="browser-body ${('full-load' if c.full_load else '')}">
Liviu
files avatar in front of message and rounded gravatars
r3650 <table class="code-browser rctable repo_summary">
templating: use .mako as extensions for template files.
r1282 <thead>
<tr>
<th>${_('Name')}</th>
<th>${_('Size')}</th>
<th>${_('Modified')}</th>
<th>${_('Last Commit')}</th>
<th>${_('Author')}</th>
</tr>
</thead>
<tbody id="tbody">
files: updated based on new design
r3706 <tr>
<td colspan="5">
${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'), limit_items=True)}
templating: use .mako as extensions for template files.
r1282 </td>
files: updated based on new design
r3706 </tr>
dan
svn: show empty dirs nicer
r3941
<% has_files = False %>
% for cnt,node in enumerate(c.file):
<% has_files = True %>
<tr class="parity${(cnt % 2)}">
templating: use .mako as extensions for template files.
r1282 <td class="td-componentname">
% if node.is_submodule():
<span class="submodule-dir">
% if node.url.startswith('http://') or node.url.startswith('https://'):
<a href="${node.url}">
styling: updated old icons based on the new definitions....
r1939 <i class="icon-directory browser-dir"></i>${node.name}
templating: use .mako as extensions for template files.
r1282 </a>
% else:
styling: updated old icons based on the new definitions....
r1939 <i class="icon-directory browser-dir"></i>${node.name}
templating: use .mako as extensions for template files.
r1282 % endif
</span>
% else:
ui: new file tree switcher...
r3655
<a href="${h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=h.safe_unicode(node.path), _query=query)}">
<i class="${('icon-file-text browser-file' if node.is_file() else 'icon-directory browser-dir')}"></i>${node.name}
templating: use .mako as extensions for template files.
r1282 </a>
% endif
</td>
%if node.is_file():
<td class="td-size" data-attr-name="size">
% if c.full_load:
<span data-size="${node.size}">${h.format_byte_size_binary(node.size)}</span>
% else:
${_('Loading ...')}
% endif
</td>
<td class="td-time" data-attr-name="modified_at">
% if c.full_load:
<span data-date="${node.last_commit.date}">${h.age_component(node.last_commit.date)}</span>
% endif
</td>
<td class="td-hash" data-attr-name="commit_id">
% if c.full_load:
hovercards: added commit hovercard for files, and dashboard views.
r4032 <div class="tooltip-hovercard" data-hovercard-alt="${node.last_commit.message}" data-hovercard-url="${h.route_path('hovercard_repo_commit', repo_name=c.repo_name, commit_id=node.last_commit.raw_id)}">
core: stop using deprecated .revision
r3105 <pre data-commit-id="${node.last_commit.raw_id}">r${node.last_commit.idx}:${node.last_commit.short_id}</pre>
templating: use .mako as extensions for template files.
r1282 </div>
% endif
</td>
<td class="td-user" data-attr-name="author">
% if c.full_load:
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 <span data-author="${node.last_commit.author}">${h.gravatar_with_user(request, node.last_commit.author, tooltip=True)|n}</span>
templating: use .mako as extensions for template files.
r1282 % endif
</td>
%else:
<td></td>
<td></td>
<td></td>
<td></td>
%endif
</tr>
dan
svn: show empty dirs nicer
r3941 % endfor
% if not has_files:
<tr>
<td colspan="5">
##empty-dir mostly SVN
&nbsp;
</td>
</tr>
% endif
templating: use .mako as extensions for template files.
r1282 </tbody>
<tbody id="tbody_filtered"></tbody>
</table>
</div>