diff --git a/rhodecode/templates/admin/repos/repo_edit.html b/rhodecode/templates/admin/repos/repo_edit.html --- a/rhodecode/templates/admin/repos/repo_edit.html +++ b/rhodecode/templates/admin/repos/repo_edit.html @@ -18,7 +18,7 @@ <%def name="main()"> -
+
${self.breadcrumbs()} @@ -31,11 +31,18 @@
-
- ${h.text('repo_name',class_="small")} +
+ ${h.text('repo_name',class_="medium")}
- +
+
+ +
+
+ ${h.select('repo_type','hg',c.backends,class_="medium")} +
+
@@ -53,7 +60,14 @@ ${h.checkbox('private',value="True")}
- +
+
+ +
+
+ ${h.checkbox('enable_statistics',value="True")} +
+
@@ -142,7 +156,8 @@
- ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")} + ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} + ${h.reset('reset','Reset',class_="ui-button ui-widget ui-state-default ui-corner-all")}
@@ -272,4 +287,50 @@
+ +
+
+
${_('Administration')}
+
+ +

${_('Statistics')}

+ + ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="refresh_icon action_button",onclick="return confirm('Confirm to remove current statistics');")} + +
+
    +
  • ${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}
  • +
  • ${_('Percentage of stats gathered')}: ${c.stats_percentage} %
  • +
+
+ +
+
+ ${h.end_form()} + +

${_('Cache')}

+ ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="refresh_icon action_button",onclick="return confirm('Confirm to invalidate repository cache');")} +
+
+ ${h.end_form()} + + +

${_('Delete')}

+ ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} +
+
+ ${h.end_form()} + +
+ + \ No newline at end of file