diff options
author | Unknwon <u@gogs.io> | 2016-08-12 02:29:29 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-14 23:52:24 -0700 |
commit | 15845cb28763c1542556ad61d2aa9735541dbf45 (patch) | |
tree | 94b2053202fcf5270e0697fc37c38203310571ed /templates/repo | |
parent | d0a0239bacf02eb004634dfe1bb0a3f7dfe5adb6 (diff) | |
download | gitea-15845cb28763c1542556ad61d2aa9735541dbf45.tar.gz gitea-15845cb28763c1542556ad61d2aa9735541dbf45.zip |
Code clean up for new config options
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/edit.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/edit.tmpl b/templates/repo/edit.tmpl index ba75a988b7..49a3df7842 100644 --- a/templates/repo/edit.tmpl +++ b/templates/repo/edit.tmpl @@ -30,14 +30,14 @@ <div class="field"> <div class="ui top attached tabular menu" data-write="write" data-preview="preview" data-diff="diff"> <a class="active item" data-tab="write"><i class="octicon octicon-code"></i> {{.i18n.Tr "repo.edit_file"}}</a> - <a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}" data-preview-apis="{{.PreviewTabApis}}"><i class="octicon octicon-eye"></i> {{.i18n.Tr "repo.release.preview"}}</a> - <a class="item" data-tab="diff" data-url="{{.PreviewDiffUrl}}" data-context="{{.BranchLink}}"><i class="octicon octicon-diff"></i> {{.i18n.Tr "repo.preview_changes"}}</a> + <a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}" data-preview-file-modes="{{.PreviewableFileModes}}"><i class="octicon octicon-eye"></i> {{.i18n.Tr "repo.release.preview"}}</a> + <a class="item" data-tab="diff" data-url="{{.PreviewDiffURL}}" data-context="{{.BranchLink}}"><i class="octicon octicon-diff"></i> {{.i18n.Tr "repo.preview_changes"}}</a> </div> <div class="ui bottom attached active tab segment" data-tab="write"> <textarea id="edit_area" name="content" data-id="repo-{{.Repository.Name}}-{{.TreeName}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}" - data-md-file-extensions="{{.MdFileExtensions}}" + data-markdown-file-exts="{{.MarkdownFileExts}}" data-line-wrap-extensions="{{.LineWrapExtensions}}"> {{.FileContent}}</textarea required> </div> |