Commit 43bc2855 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-10-31

parents e086a1a6 4472f31c
// For tabbed navigation links, scrolling tabs, etc. For all top/main navigation, // For tabbed navigation links, scrolling tabs, etc. For all top/main navigation,
// please check nav.scss // please check nav.scss
.nav-links { .nav-links:not(.quick-links) {
display: flex; display: flex;
padding: 0; padding: 0;
margin: 0; margin: 0;
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
display: inline-block; display: inline-block;
float: right; float: right;
text-align: right; text-align: right;
padding: 11px 0; padding: $gl-padding-8 0;
margin-bottom: 0; margin-bottom: 0;
> .btn, > .btn,
......
...@@ -178,7 +178,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated ...@@ -178,7 +178,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
AnchorData.new(false, AnchorData.new(false,
_('New file'), _('New file'),
project_new_blob_path(project, default_branch || 'master'), project_new_blob_path(project, default_branch || 'master'),
'new') 'success')
end end
end end
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller .scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
.fade-left= icon('angle-left') .fade-left= icon('angle-left')
.fade-right= icon('angle-right') .fade-right= icon('angle-right')
.nav-links.scrolling-tabs .nav-links.scrolling-tabs.quick-links
= render 'stat_anchor_list', anchors: @project.empty_repo_statistics_anchors = render 'stat_anchor_list', anchors: @project.empty_repo_statistics_anchors
= render 'stat_anchor_list', anchors: @project.empty_repo_statistics_buttons = render 'stat_anchor_list', anchors: @project.empty_repo_statistics_buttons
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller .scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
.fade-left= icon('angle-left') .fade-left= icon('angle-left')
.fade-right= icon('angle-right') .fade-right= icon('angle-right')
.nav-links.scrolling-tabs .nav-links.scrolling-tabs.quick-links
= render 'stat_anchor_list', anchors: @project.statistics_anchors(show_auto_devops_callout: show_auto_devops_callout) = render 'stat_anchor_list', anchors: @project.statistics_anchors(show_auto_devops_callout: show_auto_devops_callout)
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout) = render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout)
......
---
title: Fix quick links button styles
merge_request: 22657
author: George Tsiolis
type: fixed
...@@ -239,7 +239,7 @@ describe ProjectPresenter do ...@@ -239,7 +239,7 @@ describe ProjectPresenter do
expect(presenter.new_file_anchor_data).to have_attributes(enabled: false, expect(presenter.new_file_anchor_data).to have_attributes(enabled: false,
label: "New file", label: "New file",
link: presenter.project_new_blob_path(project, 'master'), link: presenter.project_new_blob_path(project, 'master'),
class_modifier: 'new') class_modifier: 'success')
end end
it 'returns nil if user cannot push' do it 'returns nil if user cannot push' do
......
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