diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-10 18:08:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-10 18:08:17 +0000 |
commit | 219eead23f9feb5da9ec378c451d773aea2dfe61 (patch) | |
tree | eec14421a05ca8eb79f3cc782abe99532bb6070c /app/views | |
parent | 7c38405be9e79099f399aa429503ea7b463bbf5a (diff) | |
download | gitlab-ce-219eead23f9feb5da9ec378c451d773aea2dfe61.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_page.html.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/fullscreen.html.haml | 2 | ||||
-rw-r--r-- | app/views/shared/_outdated_browser.html.haml | 19 |
3 files changed, 15 insertions, 8 deletions
diff --git a/app/views/layouts/_page.html.haml b/app/views/layouts/_page.html.haml index 2b2ffd6abeb..06e3bca99a1 100644 --- a/app/views/layouts/_page.html.haml +++ b/app/views/layouts/_page.html.haml @@ -2,9 +2,9 @@ - if defined?(nav) && nav = render "layouts/nav/sidebar/#{nav}" .content-wrapper{ class: "#{@content_wrapper_class}" } - = render 'shared/outdated_browser' .mobile-overlay .alert-wrapper + = render 'shared/outdated_browser' = render_if_exists "layouts/header/ee_license_banner" = render "layouts/broadcast" = render "layouts/header/read_only_banner" diff --git a/app/views/layouts/fullscreen.html.haml b/app/views/layouts/fullscreen.html.haml index 8d0775f6f27..63bb9f8fff5 100644 --- a/app/views/layouts/fullscreen.html.haml +++ b/app/views/layouts/fullscreen.html.haml @@ -5,9 +5,9 @@ = render 'peek/bar' = header_message = render partial: "layouts/header/default", locals: { project: @project, group: @group } - = render 'shared/outdated_browser' .mobile-overlay .alert-wrapper + = render 'shared/outdated_browser' = render "layouts/broadcast" = yield :flash_message = render "layouts/flash" diff --git a/app/views/shared/_outdated_browser.html.haml b/app/views/shared/_outdated_browser.html.haml index 8ddb1b2bc99..30255e18f04 100644 --- a/app/views/shared/_outdated_browser.html.haml +++ b/app/views/shared/_outdated_browser.html.haml @@ -1,8 +1,15 @@ - if outdated_browser? - .flash-container - .flash-alert.text-center - GitLab may not work properly because you are using an outdated web browser. + .gl-alert.gl-alert-danger.outdated-browser{ :role => "alert" } + = sprite_icon('error', size: 16, css_class: "gl-alert-icon gl-alert-icon-no-title gl-icon") + .gl-alert-body + - if browser.ie? && browser.version.to_i == 11 + - feedback_link_url = 'https://gitlab.com/gitlab-org/gitlab/issues/197987' + - feedback_link_start = '<a href="%{url}" class="gl-link" target="_blank" rel="noopener noreferrer">'.html_safe % { url: feedback_link_url } + = s_('OutdatedBrowser|From May 2020 GitLab no longer supports Internet Explorer 11.') + %br + = s_('OutdatedBrowser|You can provide feedback %{feedback_link_start}on this issue%{feedback_link_end} or via your usual support channels.').html_safe % { feedback_link_start: feedback_link_start, feedback_link_end: '</a>'.html_safe } + - else + = s_('OutdatedBrowser|GitLab may not work properly, because you are using an outdated web browser.') %br - Please install a - = link_to 'supported web browser', help_page_path('install/requirements', anchor: 'supported-web-browsers') - for a better experience. + - browser_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('install/requirements', anchor: 'supported-web-browsers') } + = s_('OutdatedBrowser|Please install a %{browser_link_start}supported web browser%{browser_link_end} for a better experience.').html_safe % { browser_link_start: browser_link_start, browser_link_end: '</a>'.html_safe } |