Skip to content

Commit

Permalink
Put “Add new domain block” button on /admin/instances in header (mast…
Browse files Browse the repository at this point in the history
  • Loading branch information
ariasuni authored and Mage committed Jan 14, 2022
1 parent 9ddaf1b commit d6adadf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/admin/instances/index.html.haml
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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
Expand Down

0 comments on commit d6adadf

Please sign in to comment.