diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 3 | ||||
-rw-r--r-- | templates/status/401.tmpl | 5 | ||||
-rw-r--r-- | templates/status/403.tmpl | 5 |
3 files changed, 2 insertions, 11 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> diff --git a/templates/status/401.tmpl b/templates/status/401.tmpl deleted file mode 100644 index f00101fd3c..0000000000 --- a/templates/status/401.tmpl +++ /dev/null @@ -1,5 +0,0 @@ -{{template "base/head" .}} -<div class="ui container center"> - 401 Unauthorized -</div> -{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/status/403.tmpl b/templates/status/403.tmpl deleted file mode 100644 index 5c413a2974..0000000000 --- a/templates/status/403.tmpl +++ /dev/null @@ -1,5 +0,0 @@ -{{template "base/head" .}} -<div class="ui container center"> - 403 Forbidden -</div> -{{template "base/footer" .}}
\ No newline at end of file |