Browse Source

Add edit button to wiki sidebar and footer (#16719)

* Add edit button to wiki sidebar and footer

* Make edit button transparent

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.16.0-rc1
n 2 years ago
parent
commit
4aa3cacc4f
No account linked to committer's email address
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      templates/repo/wiki/view.tmpl

+ 6
- 0
templates/repo/wiki/view.tmpl View File

@@ -67,6 +67,9 @@
{{if .sidebarPresent}}
<div class="column" style="padding-top: 0;">
<div class="ui segment">
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
<a class="ui right floated muted" href="{{.RepoLink}}/wiki/_Sidebar/_edit" aria-label="{{.i18n.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a>
{{end}}
{{.sidebarContent | Str2html}}
</div>
</div>
@@ -74,6 +77,9 @@
</div>
{{if .footerPresent}}
<div class="ui segment">
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
<a class="ui right floated muted" href="{{.RepoLink}}/wiki/_Footer/_edit" aria-label="{{.i18n.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a>
{{end}}
{{.footerContent | Str2html}}
</div>
{{end}}

Loading…
Cancel
Save