Commit 59853aac authored by Andrei Kyrnich's avatar Andrei Kyrnich Committed by Mark Florian

Apply GitLab UI button styles

Applies to buttons in app/views/projects/forks
parent 2b7b0ed9
......@@ -10,11 +10,11 @@
%h5.gl-mt-3
= namespace.human_name
- if forked_project = namespace.find_fork_of(@project)
= link_to _("Go to project"), project_path(forked_project), class: "btn"
= link_to _("Go to project"), project_path(forked_project), class: "btn gl-button btn-default"
- else
%div{ class: ('has-tooltip' unless can_create_project),
title: (_('You have reached your project limit') unless can_create_project) }
= link_to _("Select"), project_forks_path(@project, namespace_key: namespace.id),
data: { qa_selector: 'fork_namespace_button', qa_name: namespace.human_name },
method: "POST",
class: ["btn btn-success", ("disabled" unless can_create_project)]
class: ["btn gl-button btn-success", ("disabled" unless can_create_project)]
......@@ -30,11 +30,11 @@
- if current_user && can?(current_user, :fork_project, @project)
- if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: _('Go to your fork'), class: 'btn btn-success' do
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: _('Go to your fork'), class: 'btn gl-button btn-success' do
= sprite_icon('fork', size: 12)
%span= _('Fork')
- else
= link_to new_project_fork_path(@project), title: _("Fork project"), class: 'btn btn-success' do
= link_to new_project_fork_path(@project), title: _("Fork project"), class: 'btn gl-button btn-success' do
= sprite_icon('fork', size: 12)
%span= _('Fork')
......
---
title: Apply GitLab UI button styles to HAML buttons app/views/projects/forks
merge_request: 43101
author: Andrei Kyrnich @kyrnich
type: other
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