djcev.com

//

Git Repos / blogofile_gitview / commit 1bb94a6

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

Commit: 1bb94a6d344b06fd4946cf69cec95735d491d67a
Parent: 8362c9e77758d1b0e8977474fa5ec27179312c0a
Author: Cameron Vanderzanden <cvanderz@gmail.com>, 2021-07-25 09:34
Committer: Cameron Vanderzanden <cvanderz@gmail.com>, 2021-07-25 09:34

Commit Message

Small template changes, rem comment from gitview

Change List & Diffs

?File Add Del
M _controllers/gitview.py -1
M _templates/gitview/git_file.mako +3 -2
M _templates/gitview/git_files.mako +2 -3
M _templates/gitview/git_log.mako +2 -3
M _templates/gitview/git_repo.mako +2 -2

_controllers/gitview.py

diff --git a/_controllers/gitview.py b/_controllers/gitview.py
index cfd378f..d53e041 100644
--- a/_controllers/gitview.py
+++ b/_controllers/gitview.py
@@ -119,7 +119,6 @@ def write_log(repo, repoinfo):
lexer.tabsize = 8
patchhtml = pygments.highlight(patch.text, lexer,
pygments_differ)
- # patchhtml = patchhtml.replace('\n',"<br />")
patches.append(patchhtml)
ci = {
"author": commit.author.name,

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

_templates/gitview/git_file.mako

diff --git a/_templates/gitview/git_file.mako b/_templates/gitview/git_file.mako
index e0d614f..0719005 100644
--- a/_templates/gitview/git_file.mako
+++ b/_templates/gitview/git_file.mako
@@ -1,8 +1,8 @@
<%inherit file="site.mako" />\
<%
- import os.path
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" />\
@@ -14,5 +14,6 @@ ${self.git_header(repo['name'], repo['last_commit'], fname)}
% else:
${data}
% endif
-<p><a href="#top">Return to top of this page</a></p>
+<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 top of this page or return to the overview of this repository

_templates/gitview/git_files.mako

diff --git a/_templates/gitview/git_files.mako b/_templates/gitview/git_files.mako
index 8f1b0ed..fb3a1f4 100644
--- a/_templates/gitview/git_files.mako
+++ b/_templates/gitview/git_files.mako
@@ -17,10 +17,9 @@
</%def>\
<article>
${self.git_header(repo['name'], repo['last_commit'], third)}
-<p>${repo['desc']}<br />
-You can clone this repo with the command
+<p>${repo['desc']}</p>
+<p>You can clone this repo with
<span ${prestyle}>git clone ${repourl}.git</span>&nbsp;.</p>
-<br />
${self.file_list(files)}
<p><a href="#top">Return to top of this page</a></p>
</article>\

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

_templates/gitview/git_log.mako

diff --git a/_templates/gitview/git_log.mako b/_templates/gitview/git_log.mako
index 683c867..060b6ca 100644
--- a/_templates/gitview/git_log.mako
+++ b/_templates/gitview/git_log.mako
@@ -17,10 +17,9 @@
</%def>\
<article>
${self.git_header(repo['name'], repo['last_commit'], third)}
-<p>${repo['desc']}<br />
-You can clone this repo with the command
+<p>${repo['desc']}</p>
+<p>You can clone this repo with
<span ${prestyle}>git clone ${repourl}.git</span>&nbsp;.</p>
-<br />
${self.commit_list(commits)}
<p><a href="#top">Return to top of this page</a></p>
</article>\

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

_templates/gitview/git_repo.mako

diff --git a/_templates/gitview/git_repo.mako b/_templates/gitview/git_repo.mako
index 099152a..824565e 100644
--- a/_templates/gitview/git_repo.mako
+++ b/_templates/gitview/git_repo.mako
@@ -16,8 +16,8 @@
</%def>\
<article>
${self.git_header(repo['name'], repo['last_commit'], None)}
-<p>${repo['desc']}<br />
-You can clone this repo with the command
+<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>

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