diff options
author | Cherrg <michael@gnehr.de> | 2019-11-17 20:42:44 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-11-17 14:42:44 -0500 |
commit | 1c911aa82545741e249d6cb24990c6e8565fccee (patch) | |
tree | 4739949f8a671fdef115bd649b41662c24701df0 /templates/repo | |
parent | 9275390423fc252a74a50414eb872434dc945b1a (diff) | |
download | gitea-1c911aa82545741e249d6cb24990c6e8565fccee.tar.gz gitea-1c911aa82545741e249d6cb24990c6e8565fccee.zip |
wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)
* Add add 'write' 'preview' buttons to wiki edit like in issues
affects #6975
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* update dark theme
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix css lint warnings - missing spaces
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* hide preview button on no fullscreen toolbar
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index bf6c24220b..276ea54f3a 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -16,6 +16,10 @@ <div class="field {{if .Err_Title}}error{{end}}"> <input name="title" value="{{.title}}" autofocus required> </div> + <div class="ui top attached tabular menu previewtabs"> + <a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a> + <a class="item" data-tab="preview">{{.i18n.Tr "preview"}}</a> + </div> <div class="field"> <textarea class="js-quick-submit" id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{.Repository.APIURL}}/markdown" data-context="{{.RepoLink}}/wiki" required>{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea> </div> |