about summary refs log tree commit diff
path: root/app/views/admin/instances/index.html.haml
diff options
context:
space:
mode:
authorMélanie Chauvel <perso@hack-libre.org>2020-06-03 20:19:14 +0200
committerGitHub <noreply@github.com>2020-06-03 20:19:14 +0200
commit77619b165452dd2815748c59e16451605b457ed6 (patch)
treec6bdb6d0cec705db1f0e5606ab9ba8d88ab9d74e /app/views/admin/instances/index.html.haml
parent175fd5b8ba7a05bf5298a88a9a9f67aef4be0036 (diff)
Put “Add new domain block” button on /admin/instances in header (#13934)
Diffstat (limited to 'app/views/admin/instances/index.html.haml')
-rw-r--r--app/views/admin/instances/index.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin/instances/index.html.haml b/app/views/admin/instances/index.html.haml
index bd67eb4fc..a73b8dc92 100644
--- a/app/views/admin/instances/index.html.haml
+++ b/app/views/admin/instances/index.html.haml
@@ -1,6 +1,12 @@
 - content_for :page_title do
   = t('admin.instances.title')
 
+- content_for :heading_actions do
+  - if whitelist_mode?
+    = link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
+  - else
+    = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
+
 .filters
   .filter-subset
     %strong= t('admin.instances.moderation.title')
@@ -10,12 +16,6 @@
       - unless whitelist_mode?
         %li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
 
-  %div.special-action-button
-    - if whitelist_mode?
-      = link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
-    - else
-      = link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
-
 - unless whitelist_mode?
   = form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
     .fields-group