Commit be5af9b5 authored by Yogi's avatar Yogi Committed by Jose Ivan Vargas

Update promotion related views

This updates the views to be pajamas compliant
parent 3c037436
---
title: Add `gl-button` to promotion buttons on issue sidebar
merge_request: 51287
author: Yogi (@yo)
type: other
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
%p %p
= s_('Promotions|Epics let you manage your portfolio of projects more efficiently and with less effort by tracking groups of issues that share a theme, across projects and milestones.') = s_('Promotions|Epics let you manage your portfolio of projects more efficiently and with less effort by tracking groups of issues that share a theme, across projects and milestones.')
= link_to s_('Read more'), 'https://docs.gitlab.com/ee/user/group/epics/', class: 'btn-link', target: '_blank' = link_to s_('Read more'), 'https://docs.gitlab.com/ee/user/group/epics/', class: 'btn-link', target: '_blank'
.gl-display-flex.gl-flex-wrap .gl-flex-wrap
= render 'shared/promotions/promotion_link_project', short_form: true = render 'shared/promotions/promotion_link_project', short_form: true
= link_to s_("Promotions|Don't show me this again"), '#', class: 'btn js-close js-close-callout gl-mt-2' = link_to s_("Promotions|Don't show me this again"), '#', class: 'gl-button btn js-close js-close-callout gl-mt-2'
.hide-collapsed .hide-collapsed
= s_('Promotions|This feature is locked.') = s_('Promotions|This feature is locked.')
......
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
%div %div
= render 'shared/promotions/promotion_link_project', short_form: true, target_blank: !trial_cta, trial_cta: trial_cta = render 'shared/promotions/promotion_link_project', short_form: true, target_blank: !trial_cta, trial_cta: trial_cta
- if session_dismissal - if session_dismissal
= link_to s_("Promotions|Not now, thanks!"), '#', class: ['btn', 'js-close', 'js-close-callout', 'gl-mt-3', 'js-close-session', 'tr-issue-weights-not-now-cta'], data: { track_event: 'click_notnow' }.merge(tracking_options) = link_to s_("Promotions|Not now, thanks!"), '#', class: ['gl-button', 'btn', 'js-close', 'js-close-callout', 'gl-mt-3', 'js-close-session', 'tr-issue-weights-not-now-cta'], data: { track_event: 'click_notnow' }.merge(tracking_options)
- else - else
= link_to s_("Promotions|Don't show me this again"), '#', class: ['btn', 'js-close', 'js-close-callout', 'gl-mt-3', 'tr-issue-weights-dont-show-me-again'], data: { track_event: 'click_dontshow' }.merge(tracking_options) = link_to s_("Promotions|Don't show me this again"), '#', class: ['gl-button', 'btn', 'js-close', 'js-close-callout', 'gl-mt-3', 'tr-issue-weights-dont-show-me-again'], data: { track_event: 'click_dontshow' }.merge(tracking_options)
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
- if License.current&.expired? - if License.current&.expired?
= link_to (!short_form ? s_('Promotions|Buy GitLab Enterprise Edition') : s_('Promotions|Buy EE')), ::EE::SUBSCRIPTIONS_PLANS_URL, class: 'btn btn-primary' = link_to (!short_form ? s_('Promotions|Buy GitLab Enterprise Edition') : s_('Promotions|Buy EE')), ::EE::SUBSCRIPTIONS_PLANS_URL, class: 'btn btn-primary'
- else - else
= link_to s_('Promotions|Start GitLab Ultimate trial'), new_trial_url, class: 'btn btn-primary btn-block' = link_to s_('Promotions|Start GitLab Ultimate trial'), new_trial_url, class: 'gl-button btn btn-confirm gl-mb-3'
- else - else
%p= s_('Promotions|Contact your Administrator to upgrade your license.') %p= s_('Promotions|Contact your Administrator to upgrade your license.')
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