diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py --- a/kallithea/config/routing.py +++ b/kallithea/config/routing.py @@ -172,7 +172,7 @@ def make_map(config): action="delete_perms", conditions=dict(method=["DELETE"], function=check_group)) - m.connect("delete_repos_group", "/repo_groups/{group_name:.*?}", + m.connect("delete_repo_group", "/repo_groups/{group_name:.*?}", action="delete", conditions=dict(method=["DELETE"], function=check_group_skip_path)) diff --git a/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html b/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html --- a/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html +++ b/kallithea/templates/admin/repo_groups/repo_group_edit_settings.html @@ -46,6 +46,16 @@ ${h.form(url('repos_group',group_name=c. ${h.end_form()} +${h.form(url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')} +
+
+
+ ${h.submit('remove_%s' % c.repo_group.group_name,_('Remove this group'),class_="btn red",onclick="return confirm('"+_('Confirm to delete this group')+"');")} +
+
+
+${h.end_form()} +