Skip to content

Commit

Permalink
Move shares/modal body class to layout (mastodon#31789)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Sep 6, 2024
1 parent 3f4f779 commit c6a8472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/controllers/shares_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ class SharesController < ApplicationController
layout 'modal'

before_action :authenticate_user!
before_action :set_body_classes

def show; end

private

def set_body_classes
@body_classes = 'modal-layout compose-standalone'
end
end
2 changes: 2 additions & 0 deletions app/views/layouts/modal.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
- content_for :header_tags do
= javascript_pack_tag 'public', crossorigin: 'anonymous'

- content_for :body_classes, 'modal-layout compose-standalone'

- content_for :content do
- if user_signed_in? && !@hide_header
.account-header
Expand Down

0 comments on commit c6a8472

Please sign in to comment.