diff options
author | Gary Kim <gary@garykim.dev> | 2019-07-18 16:39:51 +0000 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-07-18 12:39:51 -0400 |
commit | 3cba42c43d8dbe9d611a787c72fe32054efa8a30 (patch) | |
tree | 309fcbfc6eeea225aab0c35d183d2937a7a48457 | |
parent | f3bbe811862ff80a4ae22870476e8670e74bff11 (diff) | |
download | gitea-3cba42c43d8dbe9d611a787c72fe32054efa8a30.tar.gz gitea-3cba42c43d8dbe9d611a787c72fe32054efa8a30.zip |
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 <gary@garykim.dev>
-rw-r--r-- | templates/repo/branch/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index a284de2c90..7963f8877f 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -18,7 +18,7 @@ {{if .IsProtected}} <i class="octicon octicon-shield"></i> {{end}} - {{$.DefaultBranch}} + <a href="{{$.RepoLink}}/src/branch/{{$.DefaultBranch | EscapePound}}">{{$.DefaultBranch}}</a> <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> {{end}} {{end}} |