Commit 969cef9d authored by Yogi's avatar Yogi Committed by Kushal Pandya

Add btn-default class to button in project breadcrumb

parent e1c35852
= link_to project_find_file_path(@project, @ref), class: 'gl-button btn shortcuts-find-file', rel: 'nofollow' do = link_to project_find_file_path(@project, @ref), class: 'gl-button btn btn-default shortcuts-find-file', rel: 'nofollow' do
= _('Find file') = _('Find file')
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
- if blob.readable_text? - if blob.readable_text?
- if blame - if blame
= link_to 'Normal view', project_blob_path(@project, @id), = link_to 'Normal view', project_blob_path(@project, @id),
class: 'gl-button btn' class: 'gl-button btn btn-default'
- else - else
= link_to 'Blame', project_blame_path(@project, @id), = link_to 'Blame', project_blame_path(@project, @id),
class: 'gl-button btn js-blob-blame-link' unless blob.empty? class: 'gl-button btn btn-default js-blob-blame-link' unless blob.empty?
= link_to 'History', project_commits_path(@project, @id), = link_to 'History', project_commits_path(@project, @id),
class: 'gl-button btn' class: 'gl-button btn btn-default'
= link_to 'Permalink', project_blob_path(@project, = link_to 'Permalink', project_blob_path(@project,
tree_join(@commit.sha, @path)), class: 'gl-button btn js-data-file-blob-permalink-url' tree_join(@commit.sha, @path)), class: 'gl-button btn btn-default js-data-file-blob-permalink-url'
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- if !project.empty_repo? && can?(current_user, :download_code, project) - if !project.empty_repo? && can?(current_user, :download_code, project)
- archive_prefix = "#{project.path}-#{ref.tr('/', '-')}" - archive_prefix = "#{project.path}-#{ref.tr('/', '-')}"
.project-action-button.dropdown.inline> .project-action-button.dropdown.inline>
%button.gl-button.btn.has-tooltip{ title: s_('DownloadSource|Download'), 'data-toggle' => 'dropdown', 'aria-label' => s_('DownloadSource|Download'), 'data-display' => 'static', data: { qa_selector: 'download_source_code_button' } } %button.gl-button.btn.btn-default.has-tooltip{ title: s_('DownloadSource|Download'), 'data-toggle' => 'dropdown', 'aria-label' => s_('DownloadSource|Download'), 'data-display' => 'static', data: { qa_selector: 'download_source_code_button' } }
= sprite_icon('download') = sprite_icon('download')
%span.sr-only= _('Select Archive Format') %span.sr-only= _('Select Archive Format')
= sprite_icon("chevron-down") = sprite_icon("chevron-down")
......
---
title: Add btn-default class to button in project breadcrumb
merge_request: 51910
author: Yogi (@yo)
type: fixed
= lock_file_link(html_options: { class: "btn path-lock js-path-lock js-hide-on-root hidden gl-button" }) = lock_file_link(html_options: { class: "btn btn-default path-lock js-path-lock js-hide-on-root hidden gl-button" })
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