diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-12-10 09:27:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 09:27:50 +0800 |
commit | 719bddcd76610a63dadc8555760072957a11cf30 (patch) | |
tree | 0df26092fba7e3e21444fe493e6b349473b6b0cb /templates/repo/settings | |
parent | fb8166c6c6b652a0e6fa98681780a6a71090faf3 (diff) | |
download | gitea-719bddcd76610a63dadc8555760072957a11cf30.tar.gz gitea-719bddcd76610a63dadc8555760072957a11cf30.zip |
Move repository model into models/repo (#17933)
* Some refactors related repository model
* Move more methods out of repository
* Move repository into models/repo
* Fix test
* Fix test
* some improvements
* Remove unnecessary function
Diffstat (limited to 'templates/repo/settings')
-rw-r--r-- | templates/repo/settings/options.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index c911a83c98..5a4c8ace69 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -78,7 +78,7 @@ <div class="ui attached segment"> {{$.i18n.Tr "repo.settings.mirror_settings.docs" | Safe}} <table class="ui table"> - {{if or .Repository.IsMirror .Repository.PushMirrors}} + {{if or .Repository.IsMirror .PushMirrors}} <thead> <tr> <th style="width:40%">{{$.i18n.Tr "repo.settings.mirror_settings.mirrored_repository"}}</th> @@ -166,7 +166,7 @@ <thead><tr><th colspan="4"></th></tr></thead> {{end}} <tbody> - {{range .Repository.PushMirrors}} + {{range .PushMirrors}} <tr> {{$address := MirrorRemoteAddress .}} <td>{{$address.Address}}</td> |