mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-09 00:15:05 +00:00
3834e1e69b
* Add option to disable verify partial doubles * Add show_landing_strip? helper method * Use show_landing_strip? helper in accounts and stream entries views * Fix naming in view specs
12 lines
211 B
Ruby
12 lines
211 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ApplicationHelper
|
|
def active_nav_class(path)
|
|
current_page?(path) ? 'active' : ''
|
|
end
|
|
|
|
def show_landing_strip?
|
|
!user_signed_in? && !single_user_mode?
|
|
end
|
|
end
|