diff --git a/rhodecode/apps/repository/views/repo_caches.py b/rhodecode/apps/repository/views/repo_caches.py --- a/rhodecode/apps/repository/views/repo_caches.py +++ b/rhodecode/apps/repository/views/repo_caches.py @@ -53,7 +53,7 @@ class RepoCachesView(RepoAppView): c.cached_diff_size = 0 if os.path.isdir(cached_diffs_dir): c.cached_diff_size = system_info.get_storage_size(cached_diffs_dir) - + c.shadow_repos = c.rhodecode_db_repo.shadow_repos() return self._get_template_context(c) @LoginRequired() diff --git a/rhodecode/templates/admin/repos/repo_edit_caches.mako b/rhodecode/templates/admin/repos/repo_edit_caches.mako --- a/rhodecode/templates/admin/repos/repo_edit_caches.mako +++ b/rhodecode/templates/admin/repos/repo_edit_caches.mako @@ -52,6 +52,28 @@ +
+
+

${_('Shadow Repositories')}

+
+
+ + % if c.shadow_repos: + % for shadow_repo in c.shadow_repos: + + + + % endfor + % else: + + + + % endif + +
${shadow_repo}
${_('No Shadow repositories exist for this repository.')}
+
+
+