feat(webui): add patch/diff links on commit page

Amolith and Crush created

Implements: bug-05a795c
Co-authored-by: Crush <crush@charm.land>

Change summary

pkg/web/templates/commit.html | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

pkg/web/templates/commit.html 🔗

@@ -29,6 +29,8 @@
   <nav aria-label="Commit actions">
     <ul>
       <li><a href="/{{.Repo.Name}}/tree/{{.Commit.ID}}">Browse file tree</a></li>
+      <li><a href="/{{.Repo.Name}}/commit/{{.Commit.ID}}.patch">View as patch</a></li>
+      <li><a href="/{{.Repo.Name}}/commit/{{.Commit.ID}}.diff">View as diff</a></li>
     </ul>
   </nav>
 </header>