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

Refactor dashboard gold trial callouts

Uses new gold trial helper method to
render a gold trial callout on user dashboards.
parent f100c9ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,7 @@
= auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity")
 
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- page_title "Activity"
- header_title "Activity", activity_dashboard_path
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title "Groups"
- header_title "Groups", dashboard_groups_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
= render 'dashboard/groups_head'
 
- if params[:filter].blank? && @groups.empty?
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, safe_params.merge(rss_url_options).to_h, title: "#{current_user.name} issues")
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
.page-title-holder
%h1.page-title= _('Issues')
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title _("Merge Requests")
- @breadcrumb_link = merge_requests_dashboard_path(assignee_username: current_user.username)
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
.page-title-holder
%h1.page-title= _('Merge Requests')
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity")
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- page_title "Projects"
- header_title "Projects", dashboard_projects_path
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
- page_title _("Starred Projects")
- header_title _("Projects"), dashboard_projects_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
%div{ class: container_class }
= render "projects/last_push"
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title "Todos"
- header_title "Todos", dashboard_todos_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
.page-title-holder
%h1.page-title= _('Todos')
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title _("Groups")
- header_title _("Groups"), dashboard_groups_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- if current_user
= render 'dashboard/groups_head'
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- if current_user
= render 'dashboard/projects_head'
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- if current_user
= render 'dashboard/projects_head'
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
- page_title _("Projects")
- header_title _("Projects"), dashboard_projects_path
 
= render_if_exists "shared/gold_trial_callout"
= render_dashboard_gold_trial(current_user)
 
- if current_user
= render 'dashboard/projects_head'
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