Skip to content

Commit

Permalink
CB: Open pages in new tab (go-gitea#13) (go-gitea#15)
Browse files Browse the repository at this point in the history
CB: Open pages in new tab (go-gitea#13)

Apply to upstream 1.14

CB: Open pages in new tab

Co-authored-by: fnetx <git@fralix.ovh>
Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/13
Co-Authored-By: Otto Richter <fnetx@noreply.codeberg.org>
Co-Committed-By: Otto Richter <fnetx@noreply.codeberg.org>

Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/15
Co-Authored-By: Otto Richter <fnetx@noreply.codeberg.org>
Co-Committed-By: Otto Richter <fnetx@noreply.codeberg.org>
  • Loading branch information
Otto Richter authored and ashimokawa committed Aug 9, 2021
1 parent 88932fb commit e1b787b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/repo/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
<div class="mx-2">/</div>
<a href="{{$.RepoLink}}">{{.Name}}</a>
<div class="labels df ac fw">
{{if eq .LowerName "pages"}}
<span class="ui basic label">
<a href="https://{{.Owner.Name}}.codeberg.page" target="_blank">
Visit Page {{svg "octicon-link-external" 16}}
</a>
</span>
{{end}}
{{if .IsTemplate}}
{{if .IsPrivate}}
<span class="ui basic label">{{$.i18n.Tr "repo.desc.private_template"}}</span>
Expand Down

0 comments on commit e1b787b

Please sign in to comment.