fix(ui): show commit icon in branch dropdown button when viewing a commit (#7571)
Closes https://codeberg.org/forgejo/forgejo/issues/7570 Fixed never running repo-home e2e test for language switcher Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7571 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Beowulf <beowulf@beocode.eu> Co-committed-by: Beowulf <beowulf@beocode.eu>
This commit is contained in:
parent
6d7b1f87e4
commit
3f673ce4d4
5 changed files with 50 additions and 25 deletions
|
@ -77,8 +77,10 @@
|
|||
{{else}}
|
||||
{{if eq $type "tag"}}
|
||||
{{svg "octicon-tag"}}
|
||||
{{else}}
|
||||
{{else if eq $type "branch"}}
|
||||
{{svg "octicon-git-branch"}}
|
||||
{{else}}
|
||||
{{svg "octicon-git-commit"}}
|
||||
{{end}}
|
||||
<strong ref="dropdownRefName" class="tw-ml-2 tw-inline-block gt-ellipsis">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue