Skip to content

Commit 3cba42c

Browse files
gary-kimtechknowlogick
authored andcommitted
Make default branch name link to default branch (#7519)
The default branch's name on the branches page for a repo was previously simply text and did not link anywhere. The name is now a link to the default branch just like the non-default branch names. Signed-off-by: Gary Kim <[email protected]>
1 parent f3bbe81 commit 3cba42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/branch/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{if .IsProtected}}
1919
<i class="octicon octicon-shield"></i>
2020
{{end}}
21-
{{$.DefaultBranch}}
21+
<a href="{{$.RepoLink}}/src/branch/{{$.DefaultBranch | EscapePound}}">{{$.DefaultBranch}}</a>
2222
<p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
2323
{{end}}
2424
{{end}}

0 commit comments

Comments
 (0)