Commit 86a4b009 authored by Justin Ho's avatar Justin Ho

Replace external-link icons with GitLab SVG

In HAML views
parent c477feae
......@@ -196,7 +196,7 @@ module CommitsHelper
return unless external_url
link_to(external_url, class: 'btn btn-file-option has-tooltip', target: '_blank', rel: 'noopener noreferrer', title: "View on #{environment.formatted_external_url}", data: { container: 'body' }) do
icon('external-link')
sprite_icon('external-link')
end
end
......
......@@ -14,4 +14,4 @@
'kubernetes-integration-help-path' => help_page_path('user/project/clusters/index'),
'account-and-external-ids-help-path' => help_page_path('user/project/clusters/add_remove_clusters.md', anchor: 'new-eks-cluster'),
'create-role-arn-help-path' => help_page_path('user/project/clusters/add_remove_clusters.md', anchor: 'new-eks-cluster'),
'external-link-icon' => icon('external-link') } }
'external-link-icon' => sprite_icon('external-link') } }
= javascript_include_tag 'https://apis.google.com/js/api.js'
- external_link_icon = icon('external-link')
- external_link_icon = sprite_icon('external-link')
- zones_link_url = 'https://cloud.google.com/compute/docs/regions-zones/regions-zones'
- machine_type_link_url = 'https://cloud.google.com/compute/docs/machine-types'
- pricing_link_url = 'https://cloud.google.com/compute/pricing#machinetype'
......
......@@ -9,7 +9,7 @@
To install this service,
= link_to "#{Gitlab.config.mattermost.host}/select_team", target: '__blank' do
join a team
= icon('external-link')
= sprite_icon('external-link')
and try again.
%hr
.clearfix
......
......@@ -19,7 +19,7 @@
To create a team,
= link_to "#{Gitlab.config.mattermost.host}/create_team" do
use Mattermost's interface
= icon('external-link')
= sprite_icon('external-link')
or ask your Mattermost system administrator.
%hr
%h4 Command trigger word
......@@ -38,7 +38,7 @@
Reserved:
= link_to 'https://docs.mattermost.com/help/messaging/executing-commands.html#built-in-commands', target: '__blank' do
see list of built-in slash commands
= icon('external-link')
= sprite_icon('external-link')
%hr
.clearfix
.float-right
......
......@@ -4,13 +4,11 @@
%ol
%li
= _('Review the process for configuring service providers in your identity provider — in this case, GitLab is the "service provider" or "relying party".')
= link_to help_page_path('user/group/saml_sso/index', anchor: 'providers'), target: '_blank' do
= _("Documentation for popular identity providers")
= icon('external-link')
= external_link _('Documentation for popular identity providers'), help_page_path('user/group/saml_sso/index', anchor: 'providers')
%li
= _("During this process, you’ll be asked for URLs from GitLab’s side. Use the URLs shown below.")
%li
= (_("Set up assertions/attributes/claims (email, first_name, last_name) and NameID according to %{docsLinkStart}the documentation %{icon}%{docsLinkEnd}") % { icon: icon('external-link'), docsLinkStart: "<a href='#{help_page_path('user/group/saml_sso/group_managed_accounts', anchor: 'assertions')}' target='_blank'>", docsLinkEnd: '</a>' }).html_safe
= (_("Set up assertions/attributes/claims (email, first_name, last_name) and NameID according to %{docsLinkStart}the documentation %{icon}%{docsLinkEnd}") % { icon: sprite_icon('external-link'), docsLinkStart: "<a href='#{help_page_path('user/group/saml_sso/group_managed_accounts', anchor: 'assertions')}' target='_blank'>", docsLinkEnd: '</a>' }).html_safe
%li
= html_escape(_("Fill in the fields below, turn on %{strong_open}Enable SAML authentication for this group%{strong_close}, and press %{strong_open}Save changes%{strong_close}")) % { strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
%li
......
......@@ -5,9 +5,7 @@
= s_("GroupSAML|SAML Single Sign On")
%p
= s_("GroupSAML|Manage your group’s membership while adding another level of security with SAML.")
= link_to help_page_path('user/group/saml_sso/index'), target: '_blank' do
= _("Learn more")
= icon('external-link')
= external_link _('Learn more'), help_page_path('user/group/saml_sso/index')
.col-lg-9
= render 'info'
%section.row.border-top.mt-4
......
......@@ -2,9 +2,7 @@
%p
This service allows users to perform common operations on this
project by entering slash commands in Slack.
= link_to help_page_path('user/project/integrations/gitlab_slack_application.md'), target: '_blank' do
View documentation
= icon('external-link')
= external_link _('View documentation'), help_page_path('user/project/integrations/gitlab_slack_application.md')
%p.inline
See the list of available commands in Slack after setting up this service
by entering
......
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