diff options
author | Unknwon <u@gogs.io> | 2015-11-26 17:33:45 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-26 17:33:45 -0500 |
commit | c50a3503e6e8ece0dabd109932a72fe093c3cab3 (patch) | |
tree | d9918c4b9c5d5efc94771cae22231fdcc0796102 /templates | |
parent | 2b10fdc4dcb987b347b031f460cf4f02fd48a31a (diff) | |
download | gitea-c50a3503e6e8ece0dabd109932a72fe093c3cab3.tar.gz gitea-c50a3503e6e8ece0dabd109932a72fe093c3cab3.zip |
introduce git-shell
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 |