Commit c1da0e00 authored by Sam Beckham's avatar Sam Beckham

Runs manual actions for the button helpers

Since the button helpers don't get picked up by the regex in the last
commit, I've had to fix these manually
parent e8e3116e
...@@ -16,7 +16,7 @@ module SnippetsHelper ...@@ -16,7 +16,7 @@ module SnippetsHelper
gitlab_raw_snippet_path(snippet, inline: false), gitlab_raw_snippet_path(snippet, inline: false),
target: '_blank', target: '_blank',
rel: 'noopener noreferrer', rel: 'noopener noreferrer',
class: "btn btn-sm has-tooltip", class: "gl-button btn btn-default btn-sm has-tooltip",
title: 'Download', title: 'Download',
data: { container: 'body' }) data: { container: 'body' })
end end
...@@ -54,7 +54,7 @@ module SnippetsHelper ...@@ -54,7 +54,7 @@ module SnippetsHelper
link_to(external_snippet_icon('doc-code'), link_to(external_snippet_icon('doc-code'),
gitlab_raw_snippet_blob_url(snippet, blob.path), gitlab_raw_snippet_blob_url(snippet, blob.path),
class: 'btn', class: 'gl-button btn btn-default',
target: '_blank', target: '_blank',
rel: 'noopener noreferrer', rel: 'noopener noreferrer',
title: 'Open raw') title: 'Open raw')
...@@ -63,7 +63,7 @@ module SnippetsHelper ...@@ -63,7 +63,7 @@ module SnippetsHelper
def embedded_snippet_download_button(snippet, blob) def embedded_snippet_download_button(snippet, blob)
link_to(external_snippet_icon('download'), link_to(external_snippet_icon('download'),
gitlab_raw_snippet_blob_url(snippet, blob.path, nil, inline: false), gitlab_raw_snippet_blob_url(snippet, blob.path, nil, inline: false),
class: 'btn', class: 'gl-button btn btn-default',
target: '_blank', target: '_blank',
title: 'Download', title: 'Download',
rel: 'noopener noreferrer') rel: 'noopener noreferrer')
......
...@@ -231,7 +231,7 @@ module SortingHelper ...@@ -231,7 +231,7 @@ module SortingHelper
end end
def sort_direction_button(reverse_url, reverse_sort, sort_value) def sort_direction_button(reverse_url, reverse_sort, sort_value)
link_class = 'btn btn-default has-tooltip reverse-sort-btn qa-reverse-sort rspec-reverse-sort' link_class = 'gl-button btn btn-default has-tooltip reverse-sort-btn qa-reverse-sort rspec-reverse-sort'
icon = sort_direction_icon(sort_value) icon = sort_direction_icon(sort_value)
url = reverse_url url = reverse_url
......
...@@ -22,7 +22,7 @@ module WikiHelper ...@@ -22,7 +22,7 @@ module WikiHelper
end end
def wiki_sidebar_toggle_button def wiki_sidebar_toggle_button
content_tag :button, class: 'btn btn-default sidebar-toggle js-sidebar-wiki-toggle', role: 'button', type: 'button' do content_tag :button, class: 'gl-button btn btn-default sidebar-toggle js-sidebar-wiki-toggle', role: 'button', type: 'button' do
sprite_icon('chevron-double-lg-left') sprite_icon('chevron-double-lg-left')
end end
end end
...@@ -61,7 +61,7 @@ module WikiHelper ...@@ -61,7 +61,7 @@ module WikiHelper
def wiki_sort_controls(wiki, sort, direction) def wiki_sort_controls(wiki, sort, direction)
sort ||= Wiki::TITLE_ORDER sort ||= Wiki::TITLE_ORDER
link_class = 'btn btn-default has-tooltip reverse-sort-btn qa-reverse-sort rspec-reverse-sort' link_class = 'gl-button btn btn-default has-tooltip reverse-sort-btn qa-reverse-sort rspec-reverse-sort'
reversed_direction = direction == 'desc' ? 'asc' : 'desc' reversed_direction = direction == 'desc' ? 'asc' : 'desc'
icon_class = direction == 'desc' ? 'highest' : 'lowest' icon_class = direction == 'desc' ? 'highest' : 'lowest'
......
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