diff options
Diffstat (limited to 'templates')
-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> |