djcev.com

//

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

Last update to this file was on 2022-01-23 at 14:14.

Show git_repo.mako

<%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 the top of this page or return to the overview of this repo.

Log git_repo.mako

Date Commit Message Author + -
2022-01-23 More file extension handling, small template fix cev +6 -6
2021-07-31 Implement branches & tags, various other changes cev +16  
2021-07-25 Small template changes, rem comment from gitview cev +2 -2
2021-07-25 README typo, git_repo.mako limit to 80 char width cev +2 -2
2021-07-25 Initial commit cev +32  

Return to the top of this page or return to the overview of this repo.