Commit c5634246 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '231179-projects-buttons' into 'master'

Resolve "Apply GitLab UI button styles to buttons in app/views/projects directory"

See merge request gitlab-org/gitlab!49939
parents 27534f58 eb8b83f8
.form-actions .form-actions
= button_tag 'Commit changes', id: 'commit-changes', class: 'btn commit-btn js-commit-button btn-success qa-commit-button' = button_tag 'Commit changes', id: 'commit-changes', class: 'gl-button btn btn-success js-commit-button qa-commit-button'
= link_to 'Cancel', cancel_path, = link_to 'Cancel', cancel_path,
class: 'btn btn-cancel', data: {confirm: leave_edit_message} class: 'gl-button btn btn-default btn-cancel', data: {confirm: leave_edit_message}
= render 'shared/projects/edit_information' = render 'shared/projects/edit_information'
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
%p %p
Get started with GitLab by enabling features that work best for your project. From issues and wikis, to merge requests and pipelines, GitLab can help manage your workflow from idea to production! Get started with GitLab by enabling features that work best for your project. From issues and wikis, to merge requests and pipelines, GitLab can help manage your workflow from idea to production!
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
= link_to "Get started", edit_project_path(@project), class: "btn btn-success" = link_to "Get started", edit_project_path(@project), class: "gl-button btn btn-success"
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
edit edit
files in this project directly. Please fork this project, files in this project directly. Please fork this project,
make your changes there, and submit a merge request. make your changes there, and submit a merge request.
= link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button btn btn-grouped btn-inverted btn-success' = link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button gl-button btn btn-grouped btn-inverted btn-success'
%button.js-cancel-fork-suggestion-button.btn.btn-grouped{ type: 'button' } %button.js-cancel-fork-suggestion-button.gl-button.btn.btn-grouped{ type: 'button' }
Cancel Cancel
...@@ -8,67 +8,77 @@ ...@@ -8,67 +8,77 @@
.import-buttons .import-buttons
- if gitlab_project_import_enabled? - if gitlab_project_import_enabled?
.import_gitlab_project.has-tooltip{ data: { container: 'body' } } .import_gitlab_project.has-tooltip{ data: { container: 'body' } }
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit', **tracking_attrs(track_label, 'click_button', 'gitlab_export') do = link_to new_import_gitlab_project_path, class: 'gl-button btn-default btn btn_import_gitlab_project project-submit', **tracking_attrs(track_label, 'click_button', 'gitlab_export') do
= sprite_icon('tanuki') .gl-button-icon
= sprite_icon('tanuki')
= _("GitLab export") = _("GitLab export")
- if github_import_enabled? - if github_import_enabled?
%div %div
= link_to new_import_github_path, class: 'btn js-import-github', **tracking_attrs(track_label, 'click_button', 'github') do = link_to new_import_github_path, class: 'gl-button btn-default btn js-import-github', **tracking_attrs(track_label, 'click_button', 'github') do
= sprite_icon('github') .gl-button-icon
= sprite_icon('github')
GitHub GitHub
- if bitbucket_import_enabled? - if bitbucket_import_enabled?
%div %div
= link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}", = link_to status_import_bitbucket_path, class: "gl-button btn-default btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}",
**tracking_attrs(track_label, 'click_button', 'bitbucket_cloud') do **tracking_attrs(track_label, 'click_button', 'bitbucket_cloud') do
= sprite_icon('bitbucket') .gl-button-icon
= sprite_icon('bitbucket')
Bitbucket Cloud Bitbucket Cloud
- unless bitbucket_import_configured? - unless bitbucket_import_configured?
= render 'projects/bitbucket_import_modal' = render 'projects/bitbucket_import_modal'
- if bitbucket_server_import_enabled? - if bitbucket_server_import_enabled?
%div %div
= link_to status_import_bitbucket_server_path, class: "btn import_bitbucket", **tracking_attrs(track_label, 'click_button', 'bitbucket_server') do = link_to status_import_bitbucket_server_path, class: "gl-button btn-default btn import_bitbucket", **tracking_attrs(track_label, 'click_button', 'bitbucket_server') do
= sprite_icon('bitbucket') .gl-button-icon
= sprite_icon('bitbucket')
Bitbucket Server Bitbucket Server
%div %div
- if gitlab_import_enabled? - if gitlab_import_enabled?
%div %div
= link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless gitlab_import_configured?}", = link_to status_import_gitlab_path, class: "gl-button btn-default btn import_gitlab #{'how_to_import_link' unless gitlab_import_configured?}",
**tracking_attrs(track_label, 'click_button', 'gitlab_com') do **tracking_attrs(track_label, 'click_button', 'gitlab_com') do
= sprite_icon('tanuki') .gl-button-icon
= sprite_icon('tanuki')
= _("GitLab.com") = _("GitLab.com")
- unless gitlab_import_configured? - unless gitlab_import_configured?
= render 'projects/gitlab_import_modal' = render 'projects/gitlab_import_modal'
- if fogbugz_import_enabled? - if fogbugz_import_enabled?
%div %div
= link_to new_import_fogbugz_path, class: 'btn import_fogbugz', **tracking_attrs(track_label, 'click_button', 'fogbugz') do = link_to new_import_fogbugz_path, class: 'gl-button btn-default btn import_fogbugz', **tracking_attrs(track_label, 'click_button', 'fogbugz') do
= sprite_icon('bug') .gl-button-icon
= sprite_icon('bug')
FogBugz FogBugz
- if gitea_import_enabled? - if gitea_import_enabled?
%div %div
= link_to new_import_gitea_path, class: 'btn import_gitea', **tracking_attrs(track_label, 'click_button', 'gitea') do = link_to new_import_gitea_path, class: 'gl-button btn-default btn import_gitea', **tracking_attrs(track_label, 'click_button', 'gitea') do
= custom_icon('gitea_logo') .gl-button-icon
= custom_icon('gitea_logo')
Gitea Gitea
- if git_import_enabled? - if git_import_enabled?
%div %div
%button.btn.btn-svg.js-toggle-button.js-import-git-toggle-button{ type: "button", data: { toggle_open_class: 'active' }, **tracking_attrs(track_label, 'click_button', 'repo_url') } %button.gl-button.btn-default.btn.btn-svg.js-toggle-button.js-import-git-toggle-button{ type: "button", data: { toggle_open_class: 'active' }, **tracking_attrs(track_label, 'click_button', 'repo_url') }
= sprite_icon('link', css_class: 'gl-icon') .gl-button-icon
= sprite_icon('link', css_class: 'gl-icon')
= _('Repo by URL') = _('Repo by URL')
- if manifest_import_enabled? - if manifest_import_enabled?
%div %div
= link_to new_import_manifest_path, class: 'btn import_manifest', **tracking_attrs(track_label, 'click_button', 'manifest_file') do = link_to new_import_manifest_path, class: 'gl-button btn-default btn import_manifest', **tracking_attrs(track_label, 'click_button', 'manifest_file') do
= sprite_icon('doc-text') .gl-button-icon
= sprite_icon('doc-text')
Manifest file Manifest file
- if phabricator_import_enabled? - if phabricator_import_enabled?
%div %div
= link_to new_import_phabricator_path, class: 'btn import_phabricator', data: { track_label: "#{track_label}", track_event: "click_button", track_property: "phabricator" } do = link_to new_import_phabricator_path, class: 'gl-button btn-default btn import_phabricator', data: { track_label: "#{track_label}", track_event: "click_button", track_property: "phabricator" } do
= custom_icon('issues') .gl-button-icon
= custom_icon('issues')
= _("Phabricator Tasks") = _("Phabricator Tasks")
......
---
title: Adds gitlab ui classes to project dir buttons
merge_request: 49939
author:
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