Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def manager?
end

helper_method :manager?
helper_method :admin_namespace?

def is_logged_in?
unless logged_in?
Expand All @@ -129,6 +130,10 @@ def has_access?
is_logged_in?
end

def admin_namespace?
controller_path.start_with?('admin/', 'super_admin/')
end

private

def set_locale
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- if content_for? :meta_tags
= yield :meta_tags
- else
- elsif !admin_namespace?
= render partial: 'shared/meta_tags'

%link{ rel: 'icon', sizes: '196x196', href: '/Icon-196.png'}
Expand Down