summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-27 00:24:24 -0500
committerUnknwon <u@gogs.io>2015-11-27 00:24:24 -0500
commit392f3ee21016476fb9794f78882d6c447acb8449 (patch)
treed2ff57d2ddbe77760021ea57dafc70004ec95269 /templates
parentc50a3503e6e8ece0dabd109932a72fe093c3cab3 (diff)
downloadgitea-392f3ee21016476fb9794f78882d6c447acb8449.tar.gz
gitea-392f3ee21016476fb9794f78882d6c447acb8449.zip
wiki: finish new
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/wiki/new.tmpl2
-rw-r--r--templates/repo/wiki/view.tmpl18
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