Refactor dashboard gold trial callouts

Uses new gold trial helper method to
render a gold trial callout on user dashboards.
This commit is contained in:
Luke Bennett 2019-02-19 21:26:07 +00:00
parent f100c9ba15
commit 4424a30fe1
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
11 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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?

View File

@ -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')

View File

@ -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')

View File

@ -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

View File

@ -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"

View File

@ -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')

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'