Mercurial > kallithea
diff rhodecode/templates/data_table/_dt_elements.html @ 3629:802c94bdfc85 beta
#749 and #516 Removed dupliciting of repo settings for rhodecode admins and repo admins
- repo admin now is allowed the same set of operations as the rhodecode admin
- single logic for forms/validations/permissions
- fixes #805 update external repo via webinterface
-
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 28 Mar 2013 02:57:05 +0100 |
parents | 7b74079beec9 |
children | ec6354949623 |
line wrap: on
line diff
--- a/rhodecode/templates/data_table/_dt_elements.html Thu Mar 28 02:11:26 2013 +0100 +++ b/rhodecode/templates/data_table/_dt_elements.html Thu Mar 28 02:57:05 2013 +0100 @@ -113,26 +113,14 @@ <%def name="repo_actions(repo_name, super_user=True)"> <div> <div style="float:left"> - %if super_user: <a href="${h.url('edit_repo',repo_name=repo_name)}" title="${_('edit')}"> ${h.submit('edit_%s' % repo_name,_('edit'),class_="edit_icon action_button")} </a> - %else: - <a href="${h.url('repo_settings_home',repo_name=repo_name)}" title="${_('edit')}"> - ${h.submit('edit_%s' % repo_name,_('edit'),class_="edit_icon action_button")} - </a> - %endif </div> <div style="float:left"> - %if super_user: ${h.form(h.url('repo', repo_name=repo_name),method='delete')} ${h.submit('remove_%s' % repo_name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} ${h.end_form()} - %else: - ${h.form(h.url('repo_settings_delete', repo_name=repo_name),method='delete')} - ${h.submit('remove_%s' % repo_name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} - ${h.end_form()} - %endif </div> </div> </%def>