Skip to content

Commit baf446e

Browse files
committed
fix
1 parent 145b583 commit baf446e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

templates/repo/wiki/view.tmpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
</div>
4545
</div>
4646
<div class="eight wide right aligned column">
47-
{{if .EscapeStatus.Escaped}}
48-
<a class="ui small button unescape-button tw-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</a>
49-
<a class="ui small button escape-button">{{ctx.Locale.Tr "repo.escape_control_characters"}}</a>
50-
{{end}}
51-
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
52-
<div class="ui right">
47+
<div class="ui right">
48+
{{if not .EscapeStatus.Escaped}}
49+
<a class="ui small button unescape-button tw-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</a>
50+
<a class="ui small button escape-button">{{ctx.Locale.Tr "repo.escape_control_characters"}}</a>
51+
{{end}}
52+
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
5353
<a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_edit">{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}</a>
5454
<a class="ui small primary button" href="{{.RepoLink}}/wiki?action=_new">{{ctx.Locale.Tr "repo.wiki.new_page_button"}}</a>
5555
<a class="ui small red button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}?action=_delete" data-id="{{.PageURL}}">{{ctx.Locale.Tr "repo.wiki.delete_page_button"}}</a>
56-
</div>
57-
{{end}}
56+
{{end}}
57+
</div>
5858
</div>
5959
</div>
6060
</div>

0 commit comments

Comments
 (0)