all repos — elgit @ 8f09d15aecd2967ea00229b43198ff266a6e4a6a

fork of legit: web frontend for git, written in go

templates/commit: <ul> should appear outside of the range loop
Runxi Yu me@runxiyu.org
Sat, 15 Feb 2025 18:35:58 +0800
commit

8f09d15aecd2967ea00229b43198ff266a6e4a6a

parent

6887878020113a7b0cc422097e0c452d5552e99a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M templates/commit.htmltemplates/commit.html
@@ -42,11 +42,11 @@ </div>           <div>
             <br>
             <strong>jump to</strong>
-            {{ range .diff }}
             <ul>
+            {{ range .diff }}
             <li><a href="#{{ .Name.New }}">{{ .Name.New }}</a></li>
-            </ul>
             {{ end }}
+            </ul>
           </div>
         </div>
       </section>