diff options
author | Andrew <boyarshinand@gmail.com> | 2016-08-12 00:18:51 +0700 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-11 10:18:51 -0700 |
commit | 0885784f136b9b68653ec33fa733e962f3507f7e (patch) | |
tree | 485512cf16333b9ae28cba83b8f3091392f94bc3 /templates/repo/wiki | |
parent | 3380c946e12e53368f28a2b7285c7bad0c1746dc (diff) | |
download | gitea-0885784f136b9b68653ec33fa733e962f3507f7e.tar.gz gitea-0885784f136b9b68653ec33fa733e962f3507f7e.zip |
Wiki mirroring implementation (#3233)
* Implement wiki mirroring, add Update mirrors operation to admin dashboard
* bindata.go update after merge
* Implement checking Git repo endpoint existence, support for BB included
* Remove admin dashboard operation
Fix bindata.go
* Apply gofmt to repo model file
* Try to remove bindata from PR
* Revert accepted wiki names change in favor of better system
* Remove unused imports
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/start.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/wiki/start.tmpl b/templates/repo/wiki/start.tmpl index e74627f848..674199198c 100644 --- a/templates/repo/wiki/start.tmpl +++ b/templates/repo/wiki/start.tmpl @@ -6,7 +6,7 @@ <span class="mega-octicon octicon-book"></span> <h2>{{.i18n.Tr "repo.wiki.welcome"}}</h2> <p>{{.i18n.Tr "repo.wiki.welcome_desc"}}</p> - {{if .IsRepositoryWriter}} + {{if and .IsRepositoryWriter (not .IsRepositoryMirror)}} <a class="ui green button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.create_first_page"}}</a> {{end}} </div> diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 833f372f45..9bc6ece76c 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -46,7 +46,7 @@ </div> <div class="ui dividing header"> {{.title}} - {{if .IsRepositoryWriter}} + {{if and .IsRepositoryWriter (not .IsRepositoryMirror)}} <div class="ui right"> <a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}/_edit">{{.i18n.Tr "repo.wiki.edit_page_button"}}</a> <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a> |