Consolidate inclusion of `admin` js pack link (#26628)
This commit is contained in:
parent
e3fd071973
commit
9974163776
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.accounts.title')
|
= t('admin.accounts.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
|
= form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
|
||||||
.filters
|
.filters
|
||||||
.filter-subset.filter-subset--with-select
|
.filter-subset.filter-subset--with-select
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.action_logs.title')
|
= t('admin.action_logs.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= form_tag admin_action_logs_url, method: 'GET', class: 'simple_form' do
|
= form_tag admin_action_logs_url, method: 'GET', class: 'simple_form' do
|
||||||
= hidden_field_tag :target_account_id, params[:target_account_id] if params[:target_account_id].present?
|
= hidden_field_tag :target_account_id, params[:target_account_id] if params[:target_account_id].present?
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= simple_form_for @announcement, url: admin_announcement_path(@announcement), html: { novalidate: false } do |f|
|
= simple_form_for @announcement, url: admin_announcement_path(@announcement), html: { novalidate: false } do |f|
|
||||||
= render 'shared/error_messages', object: @announcement
|
= render 'shared/error_messages', object: @announcement
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= simple_form_for @announcement, url: admin_announcements_path, html: { novalidate: false } do |f|
|
= simple_form_for @announcement, url: admin_announcements_path, html: { novalidate: false } do |f|
|
||||||
= render 'shared/error_messages', object: @announcement
|
= render 'shared/error_messages', object: @announcement
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.custom_emojis.title')
|
= t('admin.custom_emojis.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- if can?(:create, :custom_emoji)
|
- if can?(:create, :custom_emoji)
|
||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'
|
= link_to t('admin.custom_emojis.upload'), new_admin_custom_emoji_path, class: 'button'
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.dashboard.title')
|
= t('admin.dashboard.title')
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.disputes.appeals.title')
|
= t('admin.disputes.appeals.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
.filters
|
.filters
|
||||||
.filter-subset
|
.filter-subset
|
||||||
%strong= t('admin.tags.review')
|
%strong= t('admin.tags.review')
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.domain_allows.add_new')
|
= t('admin.domain_allows.add_new')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
|
= t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.domain_blocks.edit')
|
= t('admin.domain_blocks.edit')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
|
= link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= form_for(@form, url: batch_admin_email_domain_blocks_path) do |f|
|
= form_for(@form, url: batch_admin_email_domain_blocks_path) do |f|
|
||||||
= hidden_field_tag :page, params[:page] || 1
|
= hidden_field_tag :page, params[:page] || 1
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
= simple_form_for @email_domain_block, url: admin_email_domain_blocks_path do |f|
|
= simple_form_for @email_domain_block, url: admin_email_domain_blocks_path do |f|
|
||||||
= render 'shared/error_messages', object: @email_domain_block
|
= render 'shared/error_messages', object: @email_domain_block
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.export_domain_blocks.import.title')
|
= t('admin.export_domain_blocks.import.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.export_domain_blocks.import.description_html')
|
%p= t('admin.export_domain_blocks.import.description_html')
|
||||||
|
|
||||||
- if defined?(@global_private_comment) && @global_private_comment.present?
|
- if defined?(@global_private_comment) && @global_private_comment.present?
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.follow_recommendations.title')
|
= t('admin.follow_recommendations.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.follow_recommendations.description_html')
|
%p= t('admin.follow_recommendations.description_html')
|
||||||
|
|
||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.instances.title')
|
= t('admin.instances.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
- if limited_federation_mode?
|
- if limited_federation_mode?
|
||||||
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button', id: 'add-instance-button'
|
= link_to t('admin.domain_allows.add_new'), new_admin_domain_allow_path, class: 'button', id: 'add-instance-button'
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= @instance.domain
|
= @instance.domain
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- if current_user.can?(:view_dashboard)
|
- if current_user.can?(:view_dashboard)
|
||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= l(@time_period.first)
|
= l(@time_period.first)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.ip_blocks.title')
|
= t('admin.ip_blocks.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- if can?(:create, :ip_block)
|
- if can?(:create, :ip_block)
|
||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= link_to t('admin.ip_blocks.add_new'), new_admin_ip_block_path, class: 'button'
|
= link_to t('admin.ip_blocks.add_new'), new_admin_ip_block_path, class: 'button'
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
= javascript_pack_tag 'public', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.reports.report', id: @report.id)
|
= t('admin.reports.report', id: @report.id)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.about.title')
|
= t('admin.settings.about.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.appearance.title')
|
= t('admin.settings.appearance.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.branding.title')
|
= t('admin.settings.branding.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.content_retention.title')
|
= t('admin.settings.content_retention.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.discovery.title')
|
= t('admin.settings.discovery.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.settings.registrations.title')
|
= t('admin.settings.registrations.title')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.statuses.title')
|
= t('admin.statuses.title')
|
||||||
\-
|
\-
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('statuses.title', name: display_name(@account), quote: truncate(@status.spoiler_text.presence || @status.text, length: 50, omission: '…', escape: false))
|
= t('statuses.title', name: display_name(@account), quote: truncate(@status.spoiler_text.presence || @status.text, length: 50, omission: '…', escape: false))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= "##{@tag.display_name}"
|
= "##{@tag.display_name}"
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.trends.links.title')
|
= t('admin.trends.links.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.trends.links.description_html')
|
%p= t('admin.trends.links.description_html')
|
||||||
|
|
||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.trends.preview_card_providers.title')
|
= t('admin.trends.preview_card_providers.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.trends.preview_card_providers.description_html')
|
%p= t('admin.trends.preview_card_providers.description_html')
|
||||||
|
|
||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.trends.statuses.title')
|
= t('admin.trends.statuses.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.trends.statuses.description_html')
|
%p= t('admin.trends.statuses.description_html')
|
||||||
|
|
||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('admin.trends.tags.title')
|
= t('admin.trends.tags.title')
|
||||||
|
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
%p= t('admin.trends.tags.description_html')
|
%p= t('admin.trends.tags.description_html')
|
||||||
|
|
||||||
%hr.spacer/
|
%hr.spacer/
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
- content_for :header_tags do
|
|
||||||
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('filters.statuses.index.title')
|
= t('filters.statuses.index.title')
|
||||||
\-
|
\-
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
- content_for :header_tags do
|
- content_for :header_tags do
|
||||||
= render_initial_state
|
= render_initial_state
|
||||||
= javascript_pack_tag 'public', crossorigin: 'anonymous'
|
= javascript_pack_tag 'public', crossorigin: 'anonymous'
|
||||||
|
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
||||||
|
|
||||||
- content_for :content do
|
- content_for :content do
|
||||||
.admin-wrapper
|
.admin-wrapper
|
||||||
|
|
Loading…
Reference in New Issue