Skip to content

Commit d6adadf

Browse files
ariasuniMage
authored andcommitted
Put “Add new domain block” button on /admin/instances in header (mastodon#13934)
1 parent 9ddaf1b commit d6adadf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/views/admin/instances/index.html.haml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
- content_for :page_title do
22
= t('admin.instances.title')
33

4+
- content_for :heading_actions do
5+
- if whitelist_mode?
6+
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
7+
- else
8+
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
9+
410
.filters
511
.filter-subset
612
%strong= t('admin.instances.moderation.title')
@@ -10,12 +16,6 @@
1016
- unless whitelist_mode?
1117
%li= filter_link_to t('admin.instances.moderation.limited'), limited: '1'
1218

13-
%div.special-action-button
14-
- if whitelist_mode?
15-
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button'
16-
- else
17-
= link_to t('admin.domain_blocks.add_new'), new_admin_domain_block_path, class: 'button'
18-
1919
- unless whitelist_mode?
2020
= form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
2121
.fields-group

0 commit comments

Comments
 (0)