Skip to content

Commit

Permalink
CB/tmpl: 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)

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>
  • Loading branch information
Otto Richter authored and Otto Richter committed May 3, 2023
1 parent 6ef8de2 commit 07e459a
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 @@ -17,6 +17,13 @@
<a href="{{$.RepoLink}}.rss"><i class="ui grey icon tooltip gt-ml-3" data-content="{{$.locale.Tr "rss_feed"}}" data-position="top center">{{svg "octicon-rss" 18}}</i></a>
{{end}}
<div class="labels gt-df gt-ac gt-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">{{$.locale.Tr "repo.desc.private_template"}}</span>
Expand Down

0 comments on commit 07e459a

Please sign in to comment.