djcev.com

//

Git Repos / blogofile_gitview / _templates / gitview / git_file_list.mako

Last commit to this repo was on 2022-01-23 at 14:14.

<%page args="files"/>\
<%
objdir = bf.config.gitview.objdir
def trunc_fname(fullname):
if len(fullname) > 60:
fnamel = fullname.split('/')
fnamet = "{}/.../{}".format(fnamel[0], fnamel[len(fnamel) - 1])
return fnamet
else: return fullname
%>\
<section class="files"><table><tr>
<th class="filemode">Mode</th>
<th class="filename">Name</th>
<th class="filesize">Size</th></tr>
% for f in files:
<tr><td class="filemode">${f['mode']}</td>
<td class="filename">
<a href="${objdir}/${f['sfname']}.html">${trunc_fname(f['fullname'])}</a></td>
<td class="filesize">${f['objsize']}</td></tr>
% endfor
</table></section>\

Return to top of this page or return to the overview of this repository