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 | |
parent | 2f28a0310b0f391dd74bb3a2ab0ae06379a4fb1a (diff) | |
download | gitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.tar.gz gitea-2b10fdc4dcb987b347b031f460cf4f02fd48a31a.zip |
Wiki: UI for page new
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 27 | ||||
-rw-r--r-- | templates/repo/wiki/start.tmpl | 16 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 0 |
3 files changed, 43 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 diff --git a/templates/repo/wiki/start.tmpl b/templates/repo/wiki/start.tmpl new file mode 100644 index 0000000000..757ab9bce0 --- /dev/null +++ b/templates/repo/wiki/start.tmpl @@ -0,0 +1,16 @@ +{{template "base/head" .}} +<div class="repository wiki start"> + {{template "repo/header" .}} + <div class="ui container"> + {{template "repo/sidebar" .}} + <div class="ui center segment"> + <span class="mega-octicon octicon-book"></span> + <h2>{{.i18n.Tr "repo.wiki.welcome"}}</h2> + <p>{{.i18n.Tr "repo.wiki.welcome_desc"}}</p> + {{if .IsSigned}} + <a class="ui green button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.create_first_page"}}</a> + {{end}} + </div> + </div> +</div> +{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/templates/repo/wiki/view.tmpl |