Commit c58a4ea8 authored by Luke Bennett's avatar Luke Bennett

Lint

parent 2ab3e57c
...@@ -22,9 +22,9 @@ module DashboardHelper ...@@ -22,9 +22,9 @@ module DashboardHelper
def controller_action_to_child_dashboards(controller = controller_name, action = action_name) def controller_action_to_child_dashboards(controller = controller_name, action = action_name)
case "#{controller}##{action}" case "#{controller}##{action}"
when 'projects#index', 'root#index', 'projects#starred', 'projects#trending' when 'projects#index', 'root#index', 'projects#starred', 'projects#trending'
%w(projects, 'stars) %w(projects stars)
when 'dashboard#activity' when 'dashboard#activity'
%w(starred_project_activity, 'project_activity) %w(starred_project_activity project_activity)
when 'groups#index' when 'groups#index'
%w(groups) %w(groups)
when 'todos#index' when 'todos#index'
...@@ -38,7 +38,7 @@ module DashboardHelper ...@@ -38,7 +38,7 @@ module DashboardHelper
end end
end end
def is_default_dashboard?(user = current_user) def user_default_dashboard?(user = current_user)
controller_action_to_child_dashboards.any? {|dashboard| dashboard == user.dashboard } controller_action_to_child_dashboards.any? {|dashboard| dashboard == user.dashboard }
end end
......
- if show_gold_trial? && is_default_dashboard? - if show_gold_trial? && user_default_dashboard?
.pt-1.d-none.d-md-block{ class: container_class } .pt-1.d-none.d-md-block{ class: container_class }
.user-callout.promotion-callout.thin-callout.js-gold-trial-callout{ data: { uid: 'trial_callout_dismissed', feature_id: UserCalloutsHelper::GOLD_TRIAL, dismiss_endpoint: user_callouts_path } } .user-callout.promotion-callout.thin-callout.js-gold-trial-callout{ data: { uid: 'trial_callout_dismissed', feature_id: UserCalloutsHelper::GOLD_TRIAL, dismiss_endpoint: user_callouts_path } }
.bordered-box.justify-content-left.align-items-center .bordered-box.justify-content-left.align-items-center
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment