Skip to content
Snippets Groups Projects
Unverified Commit c58a4ea8 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Lint

parent 2ab3e57c
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -22,9 +22,9 @@ module DashboardHelper
def controller_action_to_child_dashboards(controller = controller_name, action = action_name)
case "#{controller}##{action}"
when 'projects#index', 'root#index', 'projects#starred', 'projects#trending'
%w(projects, 'stars)
%w(projects stars)
when 'dashboard#activity'
%w(starred_project_activity, 'project_activity)
%w(starred_project_activity project_activity)
when 'groups#index'
%w(groups)
when 'todos#index'
Loading
Loading
@@ -38,7 +38,7 @@ module DashboardHelper
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 }
end
 
Loading
Loading
- if show_gold_trial? && is_default_dashboard?
- if show_gold_trial? && user_default_dashboard?
.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 } }
.bordered-box.justify-content-left.align-items-center
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment