Mercurial > kallithea
diff rhodecode/templates/admin/repos/repo_edit.html @ 3391:f282c81ff532 beta
implemented #689 Deleting Repositories with Forks Should Be Easier
- optionally detach or delete forks associated to repo
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 21 Feb 2013 00:41:48 +0100 |
parents | fc08484c5bf3 |
children | f74be3359044 |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos/repo_edit.html Wed Feb 20 23:44:27 2013 +0100 +++ b/rhodecode/templates/admin/repos/repo_edit.html Thu Feb 21 00:41:48 2013 +0100 @@ -291,6 +291,11 @@ <div class="form"> <div class="fields"> ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} + %if c.repo_info.forks.count(): + - ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} + <input type="radio" name="forks" value="detach_forks" checked="checked"/> <label for="forks">${_('Detach forks')}</label> + <input type="radio" name="forks" value="delete_forks" /> <label for="forks">${_('Delete forks')}</label> + %endif </div> <div class="field" style="border:none;color:#888"> <ul>