2021-04-17 20:07:23 +05:30
%header.jira-connect-header.gl-display-flex.gl-align-items-center.gl-justify-content-center.gl-px-5.gl-border-b-solid.gl-border-b-gray-100.gl-border-b-1.gl-bg-white
= link_to brand_header_logo, Gitlab.config.gitlab.url, target: '_blank', rel: 'noopener noreferrer'
2021-01-03 14:25:43 +05:30
2021-04-17 20:07:23 +05:30
.jira-connect-user.gl-font-base
2021-01-03 14:25:43 +05:30
- if current_user
2021-03-11 19:13:27 +05:30
- user_link = link_to(current_user.to_reference, jira_connect_users_path, target: '_blank', rel: 'noopener noreferrer', class: 'js-jira-connect-sign-in')
2021-01-03 14:25:43 +05:30
= _('Signed in to GitLab as %{user_link}').html_safe % { user_link: user_link }
- elsif @subscriptions.present?
= link_to _('Sign in to GitLab'), jira_connect_users_path, target: '_blank', rel: 'noopener noreferrer', class: 'js-jira-connect-sign-in'
2021-04-17 20:07:23 +05:30
%main.jira-connect-app.gl-px-5.gl-pt-7.gl-mx-auto
2021-01-03 14:25:43 +05:30
- if current_user.blank? && @subscriptions.empty?
2021-04-29 21:17:54 +05:30
.jira-connect-app-body.gl-px-5.gl-text-center
2021-04-17 20:07:23 +05:30
%h2= s_('JiraService|GitLab for Jira Configuration')
%p= s_('JiraService|Sign in to GitLab.com to get started.')
2021-01-03 14:25:43 +05:30
2021-04-17 20:07:23 +05:30
.gl-mt-7
= external_link _('Sign in to GitLab'), jira_connect_users_path, class: "btn gl-button btn-confirm js-jira-connect-sign-in"
2021-01-03 14:25:43 +05:30
2021-04-17 20:07:23 +05:30
.gl-mt-7
%p= s_('Integrations|Note: this integration only works with accounts on GitLab.com (SaaS).')
2021-01-03 14:25:43 +05:30
- else
2021-03-11 19:13:27 +05:30
.js-jira-connect-app{ data: jira_connect_app_data(@subscriptions) }
2021-01-29 00:20:46 +05:30
2021-04-29 21:17:54 +05:30
%p.jira-connect-app-body.gl-px-5.gl-mt-7.gl-font-base.gl-text-center
2021-04-17 20:07:23 +05:30
%strong= s_('Integrations|Browser limitations')
- firefox_link_url = 'https://www.mozilla.org/en-US/firefox/'
- firefox_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: firefox_link_url }
2021-04-29 21:17:54 +05:30
= s_('Integrations|Adding a namespace works only in browsers that allow cross‑ site cookies. Use %{firefox_link_start}Firefox%{firefox_link_end}, or enable cross‑ site cookies in your browser, when adding a namespace.').html_safe % { firefox_link_start: firefox_link_start, firefox_link_end: '</a>'.html_safe }
2021-03-11 19:13:27 +05:30
= link_to _('Learn more'), 'https://gitlab.com/gitlab-org/gitlab/-/issues/284211', target: '_blank', rel: 'noopener noreferrer'
2020-11-24 15:15:51 +05:30
2021-01-29 00:20:46 +05:30
= webpack_bundle_tag 'performance_bar' if performance_bar_enabled?
= webpack_bundle_tag 'jira_connect_app'
2021-02-22 17:27:13 +05:30
- add_page_specific_style 'page_bundles/jira_connect', defer: false