]> cat aescling's git repositories - mastodon.git/commitdiff
Put “Add new domain block” button on /admin/instances in header (#13934)
authorMélanie Chauvel <perso@hack-libre.org>
Wed, 3 Jun 2020 18:19:14 +0000 (20:19 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 18:19:14 +0000 (20:19 +0200)
app/views/admin/instances/index.html.haml

index bd67eb4fc636c5f727490700da16631c41203e63..a73b8dc92289c1de830b077127d61f27fb910734 100644 (file)
@@ -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')
       - 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