diff options
author | Unknwon <u@gogs.io> | 2015-11-25 20:10:25 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-25 20:10:25 -0500 |
commit | 2b10fdc4dcb987b347b031f460cf4f02fd48a31a (patch) | |
tree | f3f723c75684c4213a58d57a2ce0b6afdc597d25 /templates/repo/wiki/new.tmpl | |
parent | 2f28a0310b0f391dd74bb3a2ab0ae06379a4fb1a (diff) | |
download | gitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.tar.gz gitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.zip |
Wiki: UI for page new
Diffstat (limited to 'templates/repo/wiki/new.tmpl')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl new file mode 100644 index 0000000000..cdf5225d3b --- /dev/null +++ b/templates/repo/wiki/new.tmpl @@ -0,0 +1,27 @@ +{{template "base/head" .}} +<div class="repository wiki new"> + {{template "repo/header" .}} + <div class="ui container"> + {{template "repo/sidebar" .}} + <div class="ui header"> + {{.i18n.Tr "repo.wiki.new_page"}} + </div> + <form class="ui form" action="{{.Link}}" method="post"> + <div class="field"> + <input name="title" value="{{.title}}" autofocus> + </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> + </div> + <div class="field"> + <input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}"> + </div> + <div class="text right"> + <button class="ui green button"> + {{.i18n.Tr "repo.wiki.save_page"}} + </button> + </div> + </form> + </div> +</div> +{{template "base/footer" .}}
\ No newline at end of file |