about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-14 21:54:01 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-17 10:59:01 +0100
commit41d52ee4b5d72b3f63bf05b61bfb08b4ea270042 (patch)
tree62cc68ba4507366e2167c391297042f5886737ca
parent5ed35a0df4087c788c709dbb0bfb3a2cc020f78e (diff)
Fix issue with glitch-soc's theming system
-rw-r--r--app/controllers/disputes/base_controller.rb5
-rw-r--r--app/views/admin/disputes/appeals/index.html.haml3
2 files changed, 5 insertions, 3 deletions
diff --git a/app/controllers/disputes/base_controller.rb b/app/controllers/disputes/base_controller.rb
index 865146b5c..7830c5524 100644
--- a/app/controllers/disputes/base_controller.rb
+++ b/app/controllers/disputes/base_controller.rb
@@ -9,9 +9,14 @@ class Disputes::BaseController < ApplicationController
 
   before_action :set_body_classes
   before_action :authenticate_user!
+  before_action :set_pack
 
   private
 
+  def set_pack
+    use_pack 'admin'
+  end
+
   def set_body_classes
     @body_classes = 'admin'
   end
diff --git a/app/views/admin/disputes/appeals/index.html.haml b/app/views/admin/disputes/appeals/index.html.haml
index dd6a6f403..42e9c4b1d 100644
--- a/app/views/admin/disputes/appeals/index.html.haml
+++ b/app/views/admin/disputes/appeals/index.html.haml
@@ -1,9 +1,6 @@
 - content_for :page_title do
   = t('admin.disputes.appeals.title')
 
-- content_for :header_tags do
-  = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
-
 .filters
   .filter-subset
     %strong= t('admin.tags.review')