djcev.com

//

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

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

<%inherit file="site.mako"/>\
<%
prestyle = "style=\"font-family: 'Inconsolata', monospace; \""
repourl = bf.util.site_path_helper(bf.config.gitview.reporoot,
repo['name'])
repourl = bf.config.site.url + repourl
%>\
<%def name="git_header(name, l, extra)">\
<%include file="git_header.mako" args="name=name, lastcommit=l, extra=extra"/>\
</%def>\
<%def name="file_list(files)">\
<%include file="git_file_list.mako" args="files=files"/>\
</%def>\
<%def name="commit_list(commits)">\
<%include file="git_commit_list.mako" args="commits=commits"/>\
</%def>\
<%def name="branch_list(branches)">\
<%include file="git_branch_list.mako" args="branches=branches"/>\
</%def>\
<%def name="tag_list(tags)">\
<%include file="git_tag_list.mako" args="tags=tags"/>\
</%def>\
<article>
${self.git_header(repo['name'], repo['last_commit'], None)}
<p>${repo['desc']}</p>
<p>You can clone this repo with
<span ${prestyle}>git clone ${repourl}.git</span>&nbsp;.</p>
% if len(files) > 0:
<h3 id="files">File List</h3>
${self.file_list(files)}
<p><a href="#top">Return to top of this page</a></p>
% endif
% if len(commits) > 0:
<h3 id="commits">Commit Log</h3>
${self.commit_list(commits)}
<p><a href="#top">Return to top of this page</a></p>
% endif
% if len(branches) > 0:
<h3 id="branchlist">Branches</h3>
${self.branch_list(branches)}
<p><a href="#top">Return to top of this page</a></p>
% endif
% if len(tags) > 0:
<h3 id="taglist">Tags</h3>
${self.tag_list(tags)}
<p><a href="#top">Return to top of this page</a></p>
% endif
</article>\

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