Mercurial > kallithea
changeset 6810:91182a358fb3
templates: drop odd grid_edit and grid_delete classes
We really should have both buttons inside the same float-left so they get
proper spacing ... but that doesn't work when one is wrapped in a form ...
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 14 Aug 2017 00:40:04 +0200 |
parents | 4bd2c3590a22 |
children | 3fca87aa2b15 |
files | kallithea/public/css/style.css kallithea/templates/data_table/_dt_elements.html |
diffstat | 2 files changed, 8 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/css/style.css Mon Jun 26 22:28:58 2017 +0200 +++ b/kallithea/public/css/style.css Mon Aug 14 00:40:04 2017 +0200 @@ -3241,10 +3241,6 @@ color: #777777; } -.grid_edit a { - text-decoration: none; -} - .changes_txt { clear: both; }
--- a/kallithea/templates/data_table/_dt_elements.html Mon Jun 26 22:28:58 2017 +0200 +++ b/kallithea/templates/data_table/_dt_elements.html Mon Aug 14 00:40:04 2017 +0200 @@ -65,12 +65,12 @@ <%def name="repo_actions(repo_name, super_user=True)"> <div> - <div class="grid_edit pull-left"> + <div class="pull-left"> <a href="${h.url('edit_repo',repo_name=repo_name)}" title="${_('Edit')}" class="btn btn-default btn-xs"> <i class="icon-pencil"></i> ${_('Edit')} </a> </div> - <div class="grid_delete pull-left"> + <div class="pull-left"> ${h.form(h.url('delete_repo', repo_name=repo_name))} <button name="${'remove_%s' % repo_name}" class="btn btn-default btn-xs" onclick="return confirm('${_('Confirm to delete this repository: %s') % repo_name}');"> @@ -94,12 +94,12 @@ </%def> <%def name="user_actions(user_id, username)"> - <div class="grid_edit pull-left"> + <div class="pull-left"> <a href="${h.url('edit_user',id=user_id)}" title="${_('Edit')}" class="btn btn-default btn-xs"> <i class="icon-pencil"></i> ${_('Edit')} </a> </div> - <div class="grid_delete pull-left"> + <div class="pull-left"> ${h.form(h.url('delete_user', id=user_id))} <button id="${'remove_user_%s' % user_id}" name="${'remove_user_%s' % repo_name}" class="btn btn-default btn-xs" title="${_('Delete')}" onclick="return confirm('${_('Confirm to delete this user: %s') % username}');"> @@ -110,12 +110,12 @@ </%def> <%def name="user_group_actions(user_group_id, user_group_name)"> - <div class="grid_edit pull-left"> + <div class="pull-left"> <a href="${h.url('edit_users_group', id=user_group_id)}" title="${_('Edit')}" class="btn btn-default btn-xs"> <i class="icon-pencil"></i> ${_('Edit')} </a> </div> - <div class="grid_delete pull-left"> + <div class="pull-left"> ${h.form(h.url('delete_users_group', id=user_group_id))} <button id="${'remove_group_%s' % user_group_id}" name="${'remove_user_%s' % repo_name}" class="btn btn-default btn-xs" title="${_('Delete')}" onclick="return confirm('${_('Confirm to delete this user group: %s') % user_group_name}');"> @@ -126,12 +126,12 @@ </%def> <%def name="repo_group_actions(repo_group_id, repo_group_name, gr_count)"> - <div class="grid_edit pull-left"> + <div class="pull-left"> <a href="${h.url('edit_repo_group',group_name=repo_group_name)}" title="${_('Edit')}" class="btn btn-default btn-xs"> <i class="icon-pencil"></i> ${_('Edit')} </a> </div> - <div class="grid_delete pull-left"> + <div class="pull-left"> ${h.form(h.url('delete_repo_group', group_name=repo_group_name))} <button id="${'remove_%s' % repo_group_name}" name="${'remove_%s' % repo_group_name}" class="btn btn-default btn-xs" title="${_('Delete')}" onclick="return confirm('${ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)}')">