##// END OF EJS Templates
caches: show full paths for super-admin, hide paths for regular users for security.
marcink -
r3084:34a685d4 default
parent child Browse files
Show More
@@ -67,8 +67,11 b''
67 <pre>
67 <pre>
68 region: ${c.region.name}
68 region: ${c.region.name}
69 backend: ${c.region.actual_backend.__class__}
69 backend: ${c.region.actual_backend.__class__}
70 % if c.rhodecode_user.is_admin:
70 store: ${c.region.actual_backend.get_store()}
71 store: ${c.region.actual_backend.get_store()}
71
72 % else:
73 store: ${c.region.actual_backend.get_store().__class__}
74 % endif
72
75
73 % if c.repo_keys:
76 % if c.repo_keys:
74 ${len(c.repo_keys)} <a href="#showKeys" onclick="$('#show-keys').toggle()">${_('Show all')}</a>
77 ${len(c.repo_keys)} <a href="#showKeys" onclick="$('#show-keys').toggle()">${_('Show all')}</a>
@@ -118,7 +121,11 b' store: ${c.region.actual_backend.get_sto'
118 <table class="rctable edit_cache">
121 <table class="rctable edit_cache">
119 <tr>
122 <tr>
120 <td>${_('Cached diff name')}:</td>
123 <td>${_('Cached diff name')}:</td>
124 % if c.rhodecode_user.is_admin:
125 <td>${c.rhodecode_db_repo.cached_diffs_dir}</td>
126 % else:
121 <td>${c.rhodecode_db_repo.cached_diffs_relative_dir}</td>
127 <td>${c.rhodecode_db_repo.cached_diffs_relative_dir}</td>
128 % endif
122 </tr>
129 </tr>
123 <tr>
130 <tr>
124 <td>${_('Cached diff files')}:</td>
131 <td>${_('Cached diff files')}:</td>
General Comments 0
You need to be logged in to leave comments. Login now