Commit 9871175b authored by Yogi's avatar Yogi Committed by David O'Regan

Move to btn-confirm from btn-success in app/views/shared/empty_states directory

parent 37d862c3
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
.text-content.gl-mx-auto.gl-my-0.gl-p-5 .text-content.gl-mx-auto.gl-my-0.gl-p-5
%h4.h4= _('Deploy Keys') %h4.h4= _('Deploy Keys')
%p= _('Deploy keys grant read/write access to all repositories in your instance') %p= _('Deploy keys grant read/write access to all repositories in your instance')
= link_to _('New deploy key'), new_admin_deploy_key_path, class: 'btn btn-success btn-md gl-button' = link_to _('New deploy key'), new_admin_deploy_key_path, class: 'gl-button btn btn-confirm btn-md'
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= _("To widen your search, change or remove filters above") = _("To widen your search, change or remove filters above")
- if show_new_issue_link?(@project) - if show_new_issue_link?(@project)
.text-center .text-center
= link_to _("New issue"), new_project_issue_path(@project), class: "btn btn-success" = link_to _("New issue"), new_project_issue_path(@project), class: "gl-button btn btn-confirm"
- elsif is_opened_state && opened_issues_count == 0 && closed_issues_count > 0 - elsif is_opened_state && opened_issues_count == 0 && closed_issues_count > 0
%h4.text-center %h4.text-center
= _("There are no open issues") = _("There are no open issues")
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
= _("To keep this project going, create a new issue") = _("To keep this project going, create a new issue")
- if show_new_issue_link?(@project) - if show_new_issue_link?(@project)
.text-center .text-center
= link_to _("New issue"), new_project_issue_path(@project), class: "btn btn-success" = link_to _("New issue"), new_project_issue_path(@project), class: "gl-button btn btn-confirm"
- elsif is_closed_state && opened_issues_count > 0 && closed_issues_count == 0 - elsif is_closed_state && opened_issues_count > 0 && closed_issues_count == 0
%h4.text-center %h4.text-center
= _("There are no closed issues") = _("There are no closed issues")
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
- if project_select_button - if project_select_button
= render 'shared/new_project_item_select', path: 'issues/new', label: _('New issue'), type: :issues, with_feature_enabled: 'issues' = render 'shared/new_project_item_select', path: 'issues/new', label: _('New issue'), type: :issues, with_feature_enabled: 'issues'
- else - else
= link_to _('New issue'), button_path, class: 'btn gl-button btn-success', id: 'new_issue_link' = link_to _('New issue'), button_path, class: 'gl-button btn btn-confirm', id: 'new_issue_link'
- if show_import_button - if show_import_button
= render 'projects/issues/import_csv/button', type: :text = render 'projects/issues/import_csv/button', type: :text
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
%p %p
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.") = _("The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.")
.text-center .text-center
= link_to _('Register / Sign In'), new_user_session_path, class: 'btn btn-success' = link_to _('Register / Sign In'), new_user_session_path, class: 'gl-button btn btn-confirm'
- if show_import_button - if show_import_button
= render 'projects/issues/import_csv/modal' = render 'projects/issues/import_csv/modal'
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= _("To widen your search, change or remove filters above") = _("To widen your search, change or remove filters above")
.text-center .text-center
- if can_create_merge_request - if can_create_merge_request
= link_to _("New merge request"), project_new_merge_request_path(@project), class: "btn btn-success", title: _("New merge request") = link_to _("New merge request"), project_new_merge_request_path(@project), class: "gl-button btn btn-confirm", title: _("New merge request")
- elsif is_opened_state && opened_merged_count == 0 && closed_merged_count > 0 - elsif is_opened_state && opened_merged_count == 0 && closed_merged_count > 0
%h4.text-center %h4.text-center
= _("There are no open merge requests") = _("There are no open merge requests")
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
= _("To keep this project going, create a new merge request") = _("To keep this project going, create a new merge request")
.text-center .text-center
- if can_create_merge_request - if can_create_merge_request
= link_to _("New merge request"), project_new_merge_request_path(@project), class: "btn btn-success", title: _("New merge request") = link_to _("New merge request"), project_new_merge_request_path(@project), class: "gl-button btn btn-confirm", title: _("New merge request")
- elsif is_closed_state && opened_merged_count > 0 && closed_merged_count == 0 - elsif is_closed_state && opened_merged_count > 0 && closed_merged_count == 0
%h4.text-center %h4.text-center
= _("There are no closed merge requests") = _("There are no closed merge requests")
...@@ -42,4 +42,4 @@ ...@@ -42,4 +42,4 @@
- if project_select_button - if project_select_button
= render 'shared/new_project_item_select', path: 'merge_requests/new', label: _('New merge request'), type: :merge_requests, with_feature_enabled: 'merge_requests' = render 'shared/new_project_item_select', path: 'merge_requests/new', label: _('New merge request'), type: :merge_requests, with_feature_enabled: 'merge_requests'
- else - else
= link_to _('New merge request'), button_path, class: 'btn btn-success', title: _('New merge request'), id: 'new_merge_request_link' = link_to _('New merge request'), button_path, class: 'gl-button btn btn-confirm', title: _('New merge request'), id: 'new_merge_request_link'
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
%p= current_user_empty_message_description %p= current_user_empty_message_description
- if secondary_button_link.present? - if secondary_button_link.present?
= link_to secondary_button_label, secondary_button_link, class: 'gl-button btn btn-success btn-inverted' = link_to secondary_button_label, secondary_button_link, class: 'gl-button btn btn-confirm btn-inverted'
- if primary_button_link.present? - if primary_button_link.present?
= link_to primary_button_label, primary_button_link, class: 'gl-button btn btn-success' = link_to primary_button_label, primary_button_link, class: 'gl-button btn btn-confirm'
- else - else
%h5= visitor_empty_message %h5= visitor_empty_message
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
= s_('SnippetsEmptyState|Store, share, and embed small pieces of code and text.') = s_('SnippetsEmptyState|Store, share, and embed small pieces of code and text.')
.mt-2< .mt-2<
- if button_path - if button_path
= link_to s_('SnippetsEmptyState|New snippet'), button_path, class: 'btn gl-button btn-success', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link', data: { qa_selector: 'create_first_snippet_link' } = link_to s_('SnippetsEmptyState|New snippet'), button_path, class: 'btn gl-button btn-confirm', title: s_('SnippetsEmptyState|New snippet'), id: 'new_snippet_link', data: { qa_selector: 'create_first_snippet_link' }
= link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn gl-button btn-default', title: s_('SnippetsEmptyState|Documentation') = link_to s_('SnippetsEmptyState|Documentation'), help_page_path('user/snippets.md'), class: 'btn gl-button btn-default', title: s_('SnippetsEmptyState|Documentation')
- else - else
%h4.text-center= s_('SnippetsEmptyState|There are no snippets to show.') %h4.text-center= s_('SnippetsEmptyState|There are no snippets to show.')
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- if can?(current_user, :create_wiki, @wiki.container) - if can?(current_user, :create_wiki, @wiki.container)
- create_path = wiki_page_path(@wiki, params[:id], view: 'create') - create_path = wiki_page_path(@wiki, params[:id], view: 'create')
- create_link = link_to s_('WikiEmpty|Create your first page'), create_path, class: 'btn gl-button btn-success qa-create-first-page-link', title: s_('WikiEmpty|Create your first page') - create_link = link_to s_('WikiEmpty|Create your first page'), create_path, class: 'btn gl-button btn-confirm qa-create-first-page-link', title: s_('WikiEmpty|Create your first page')
= render layout: layout_path, locals: { image_path: 'illustrations/wiki_login_empty.svg' } do = render layout: layout_path, locals: { image_path: 'illustrations/wiki_login_empty.svg' } do
%h4.text-left %h4.text-left
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
- elsif @project && can?(current_user, :read_issue, @project) - elsif @project && can?(current_user, :read_issue, @project)
- issues_link = link_to s_('WikiEmptyIssueMessage|issue tracker'), project_issues_path(@project) - issues_link = link_to s_('WikiEmptyIssueMessage|issue tracker'), project_issues_path(@project)
- new_issue_link = link_to s_('WikiEmpty|Suggest wiki improvement'), new_project_issue_path(@project), class: 'btn gl-button btn-success', title: s_('WikiEmptyIssueMessage|Suggest wiki improvement') - new_issue_link = link_to s_('WikiEmpty|Suggest wiki improvement'), new_project_issue_path(@project), class: 'btn gl-button btn-confirm', title: s_('WikiEmptyIssueMessage|Suggest wiki improvement')
= render layout: layout_path, locals: { image_path: 'illustrations/wiki_logout_empty.svg' } do = render layout: layout_path, locals: { image_path: 'illustrations/wiki_logout_empty.svg' } do
%h4 %h4
......
---
title: Move to btn-confirm in app/views/shared/empty_states directory
merge_request: 55203
author: Yogi (@yo)
type: changed
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