# HG changeset patch # User Marcin Kuzminski # Date 2012-12-10 23:02:23 # Node ID 2ec4a2a5316777948cafd12f0f4127cbf89438f9 # Parent 98e8fd2d55b6defcbb3687c6c6ec17f9ba664354 added delete button into repository settings form, it makes more natural to have it there. Users where confused by my account -> my repos where deletion is also possible 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 @@ -280,7 +280,7 @@
diff --git a/rhodecode/templates/settings/repo_settings.html b/rhodecode/templates/settings/repo_settings.html --- a/rhodecode/templates/settings/repo_settings.html +++ b/rhodecode/templates/settings/repo_settings.html @@ -88,12 +88,35 @@
<%include file="../admin/repos/repo_edit_perms.html"/>
- + + +
+
+ +
+
+ ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} +
+
+
    +
  • ${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. + If you need fully delete it from file system please do it manually''')} +
  • +
+
+
+ ${h.end_form()} +
+
+
${h.submit('save',_('Save'),class_="ui-btn large")} ${h.reset('reset',_('Reset'),class_="ui-btn large")}
- + ${h.end_form()}