Git Repos / blogofile_gitview / _templates / gitview / git_file.mako
Last update to this file was on 2022-01-23 at 14:14.
Show git_file.mako
<%inherit file="site.mako"/>\
<%
fnamel = file['fullname'].split('/')
fname = " / ".join(fnamel)
repolink = bf.util.path_join(bf.config.gitview.path, repo['name'])
%>\
<%def name="git_header(name, l, extra)">\
<%include file="git_header.mako" args="name=name, lastcommit=l, extra=extra"/>\
</%def>\
<article>
${self.git_header(repo['name'], repo['last_commit'], fname)}
% if file['isbinary'] and not file['isimage']:
<p>This is a binary file and as such will not be rendered here.</p>
% else:
${data}
% endif
<p><a href="#top">Return to top of this page</a> or
<a href="/${repolink}">return to the overview of this repository</a></p>
</article>\
Return to the top of this page or return to the overview of this repo.
Log git_file.mako
Date | Commit Message | Author | + | - |
---|---|---|---|---|
2022-01-23 | More file extension handling, small template fix | cev | +2 | -2 |
2021-07-25 | Small template changes, rem comment from gitview | cev | +3 | -2 |
2021-07-25 | Initial commit | cev | +18 |
Return to the top of this page or return to the overview of this repo.