diff options
author | Unknwon <u@gogs.io> | 2016-08-11 10:53:51 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 10:53:51 -0700 |
commit | 5077408d78971463a94f2037d78fa68f201bda48 (patch) | |
tree | 45e01783d324f52a088eab1102ed70353340a54b /templates/repo | |
parent | 0885784f136b9b68653ec33fa733e962f3507f7e (diff) | |
download | gitea-5077408d78971463a94f2037d78fa68f201bda48.tar.gz gitea-5077408d78971463a94f2037d78fa68f201bda48.zip |
#3233 code cleanup and minor issue fix
Diffstat (limited to 'templates/repo')
-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 674199198c..1b8d52a587 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 and .IsRepositoryWriter (not .IsRepositoryMirror)}} + {{if and .IsRepositoryWriter (not .Repository.IsMirror)}} <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 9bc6ece76c..ff828789c8 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 and .IsRepositoryWriter (not .IsRepositoryMirror)}} + {{if and .IsRepositoryWriter (not .Repository.IsMirror)}} <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> |