mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 4e2d848e2dbdf65369003bbf515d5ffc559aeab4
parent 2c572150c9fa083d336cb209566262c6d4bf101e
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Sun, 18 Jul 2021 13:03:49 +0200

link branch badge to log instead of commit

linking to the commit is a bit pointless since it is the identical page

Diffstat:
Msrc/main.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -511,7 +511,7 @@ impl RepoCommitTemplate<'_> { for branch in branches { // branch is not a reference, just a fancy name for a commit html += &format!( - r#" <a href="/{0}/commit/{1}" class="badge branch">{1}</a>"#, + r#" <a href="/{0}/log/{1}" class="badge branch">{1}</a>"#, filters::repo_name(self.repo).unwrap(), branch.name().unwrap().unwrap(), );