aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki/new.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-26 17:33:45 -0500
committerUnknwon <u@gogs.io>2015-11-26 17:33:45 -0500
commitc50a3503e6e8ece0dabd109932a72fe093c3cab3 (patch)
treed9918c4b9c5d5efc94771cae22231fdcc0796102 /templates/repo/wiki/new.tmpl
parent2b10fdc4dcb987b347b031f460cf4f02fd48a31a (diff)
downloadgitea-c50a3503e6e8ece0dabd109932a72fe093c3cab3.tar.gz
gitea-c50a3503e6e8ece0dabd109932a72fe093c3cab3.zip
introduce git-shell
Diffstat (limited to 'templates/repo/wiki/new.tmpl')
-rw-r--r--templates/repo/wiki/new.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl
index cdf5225d3b..ede6a46757 100644
--- a/templates/repo/wiki/new.tmpl
+++ b/templates/repo/wiki/new.tmpl
@@ -7,8 +7,9 @@
{{.i18n.Tr "repo.wiki.new_page"}}
</div>
<form class="ui form" action="{{.Link}}" method="post">
+ {{.CsrfTokenHtml}}
<div class="field">
- <input name="title" value="{{.title}}" autofocus>
+ <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>