module Admin
class BaseController < ApplicationController
include Authorization
+ include AccountableConcern
+ layout 'admin'
+
before_action :require_staff!
+ before_action :set_pack
- layout 'admin'
+ def set_pack
+ use_pack 'admin'
+ end
end
end
import StatusContent from './status_content';
import StatusActionBar from './status_action_bar';
import ImmutablePureComponent from 'react-immutable-pure-component';
-import { MediaGallery, Video } from 'themes/glitch/util/async-components';
+import { MediaGallery, Video } from 'flavours/glitch/util/async-components';
import { HotKeys } from 'react-hotkeys';
-import NotificationOverlayContainer from 'themes/glitch/features/notifications/containers/overlay_container';
+import NotificationOverlayContainer from 'flavours/glitch/features/notifications/containers/overlay_container';
+ import classNames from 'classnames';
// We use the component (and not the container) since we do not want
// to use the progress bar to show download progress
has_many :session_activations, dependent: :destroy
delegate :auto_play_gif, :default_sensitive, :unfollow_modal, :boost_modal, :delete_modal,
- :reduce_motion, :system_font_ui, :noindex, :theme,
+ :reduce_motion, :system_font_ui, :noindex, :flavour, :skin,
to: :settings, prefix: :setting, allow_nil: false
+ attr_accessor :invite_code
+
def confirmed?
confirmed_at.present?
end