diff options
Diffstat (limited to 'templates/repo/wiki/view.tmpl')
-rw-r--r-- | templates/repo/wiki/view.tmpl | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index b8b0d2702a..9a1a984b63 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -50,7 +50,7 @@ </div> </div> </div> - <div class="ui dividing header"> + <div class="ui header"> {{.title}} {{if and .IsRepositoryWriter (not .Repository.IsMirror)}} <div class="ui right"> @@ -64,9 +64,28 @@ {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} </div> </div> - <div class="ui segment markdown"> - {{.content | Str2html}} + {{if .FormatWarning}} + <div class="ui negative message"> + <p>{{.FormatWarning}}</p> + </div> + {{end}} + <div class="ui {{if .sidebarPresent}}grid equal width{{end}}" style="margin-top: 1rem;"> + <div class="ui {{if .sidebarPresent}}eleven wide column{{end}} segment markdown"> + {{.content | Str2html}} + </div> + {{if .sidebarPresent}} + <div class="column" style="padding-top: 0;"> + <div class="ui segment"> + {{.sidebarContent | Str2html}} + </div> + </div> + {{end}} + </div> + {{if .footerPresent}} + <div class="ui grey segment"> + {{.footerContent | Str2html}} </div> + {{end}} </div> </div> |