diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-11 23:13:04 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-11 23:15:51 +0800 |
commit | b288beea9ddc5709769997a9101f25a78e286b89 (patch) | |
tree | db548c0ca63f180b25acb6f9822ab38bc41c15d0 /templates/repo_commit.html.tmpl | |
parent | style.css: Fix file content background (diff) | |
download | forge-b288beea9ddc5709769997a9101f25a78e286b89.tar.gz forge-b288beea9ddc5709769997a9101f25a78e286b89.tar.zst forge-b288beea9ddc5709769997a9101f25a78e286b89.zip |
*: Use URL params to specify commits/branches/tags
Diffstat (limited to 'templates/repo_commit.html.tmpl')
-rw-r--r-- | templates/repo_commit.html.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index a288949..d568887 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -53,9 +53,9 @@ <input type="checkbox" id="toggle-{{ .From.Hash }}{{ .To.Hash }}" class="file-toggle toggle-on-toggle"> <label for="toggle-{{ .From.Hash }}{{ .To.Hash }}" class="file-header toggle-on-header"> <span> - --- a/<a href="../../tree/{{ .From.Path }}?commit={{ $parent_commit_object.Hash }}">{{ .From.Path }}</a> {{ .From.Mode }} + --- a/<a href="../tree/{{ .From.Path }}?commit={{ $parent_commit_object.Hash }}">{{ .From.Path }}</a> {{ .From.Mode }} <br /> - +++ b/<a href="../../tree/{{ .To.Path }}?commit={{ $commit_object.Hash }}">{{ .To.Path }}</a> {{ .To.Mode }} + +++ b/<a href="../tree/{{ .To.Path }}?commit={{ $commit_object.Hash }}">{{ .To.Path }}</a> {{ .To.Mode }} </span> </label> <div class="file-content toggle-on-content scroll"> |