feat(web/commit): use name@hash format in title

Amolith and Crush created

Change commit page title from 'subject | Commit hash | name'
to 'subject | name@hash' for consistency with git conventions.

Implements: bug-4758ff9
Co-authored-by: Crush <crush@charm.land>

Change summary

pkg/web/webui_commit.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

pkg/web/webui_commit.go 🔗

@@ -85,7 +85,7 @@ func repoCommit(w http.ResponseWriter, r *http.Request) {
 			BaseData: BaseData{
 				ServerName:  cfg.Name,
 				ActiveTab:   "commits",
-				Title:       commitSubject + " | Commit " + shortHash + " | " + repoDisplayName,
+				Title:       commitSubject + " | " + repoDisplayName + "@" + shortHash,
 				Description: commitBody,
 			},
 			Repo:          repo,