##// END OF EJS Templates
Implemented locking for task, to prevent for running the same tasks,...
Implemented locking for task, to prevent for running the same tasks, moved out pidlock library. Added dirsize display

File last commit:

r497:fb0c3af6 celery
r497:fb0c3af6 celery
Show More
files_browser.html
77 lines | 2.4 KiB | text/html | HtmlLexer
Implemented file history.
r128 <%def name="file_class(node)">
%if node.is_file():
<%return "browser-file" %>
%else:
<%return "browser-dir"%>
%endif
</%def>
Update css +file browsing and diffs
r144 <div id="body" class="browserblock">
<div class="browser-header">
${h.form(h.url.current())}
version bump to 0.8...
r362 <div class="info_box">
<span >${_('view')}@rev</span>
<a href="${c.url_prev}">&laquo;</a>
${h.text('at_rev',value=c.rev_nr,size=3)}
<a href="${c.url_next}">&raquo;</a>
${h.submit('view','view')}
</div>
Update css +file browsing and diffs
r144 ${h.end_form()}
</div>
Updated template for summary (archives links)...
r149 <div class="browser-body">
Update css +file browsing and diffs
r144 <table class="code-browser">
<thead>
<tr>
<th>${_('Name')}</th>
<th>${_('Size')}</th>
added mimetypes to files
r495 <th>${_('Mimetype')}</th>
Update css +file browsing and diffs
r144 <th>${_('Revision')}</th>
<th>${_('Last modified')}</th>
<th>${_('Last commiter')}</th>
</tr>
</thead>
Implemented locking for task, to prevent for running the same tasks,...
r497
% if c.files_list.parent:
<tr class="parity0">
<td>
${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
%endif
Update css +file browsing and diffs
r144 %for cnt,node in enumerate(c.files_list,1):
<tr class="parity${cnt%2}">
<td>
${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
</td>
<td>
Implemented locking for task, to prevent for running the same tasks,...
r497 ${h.format_byte_size(node.size,binary=True)}
Update css +file browsing and diffs
r144 </td>
<td>
added mimetypes to files
r495 %if node.is_file():
${node.mimetype}
%endif
</td>
<td>
Update css +file browsing and diffs
r144 %if node.is_file():
${node.last_changeset.revision}
%endif
</td>
<td>
%if node.is_file():
fix for new bcrypt password....
r416 ${h.age(node.last_changeset._ctx.date())} - ${node.last_changeset.date}
Update css +file browsing and diffs
r144 %endif
</td>
<td>
%if node.is_file():
${node.last_changeset.author}
%endif
</td>
</tr>
%endfor
</table>
</div>
</div>