diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index ede6a46757..fc556e491d 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -12,7 +12,7 @@ <input name="title" value="{{.title}}" autofocus required> </div> <div class="field"> - <textarea id="edit-area" name="content" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.wiki.welcome"}}</textarea> + <textarea id="edit-area" name="content" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.wiki.welcome"}}</textarea required> </div> <div class="field"> <input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}"> diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index e69de29bb2..f41e297ec0 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -0,0 +1,18 @@ +{{template "base/head" .}} +<div class="repository wiki view"> + {{template "repo/header" .}} + <div class="ui container"> + {{template "repo/sidebar" .}} + <div class="ui dividing header"> + {{.Title}} + <div class="ui sub header"> + {{$timeSince := TimeSince .Author.When $.Lang}} + {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} + </div> + </div> + <div class="ui segment markdown"> + {{.Content | Str2html}} + </div> + </div> +</div> +{{template "base/footer" .}}
\ No newline at end of file |