Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3f177814
Commit
3f177814
authored
Oct 29, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix quick links button styles
parent
b868b02c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
6 deletions
+11
-6
app/assets/stylesheets/framework/secondary_navigation_elements.scss
.../stylesheets/framework/secondary_navigation_elements.scss
+2
-2
app/presenters/project_presenter.rb
app/presenters/project_presenter.rb
+1
-1
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-1
changelogs/unreleased/gt-fix-quick-links-button-styles.yml
changelogs/unreleased/gt-fix-quick-links-button-styles.yml
+5
-0
spec/presenters/project_presenter_spec.rb
spec/presenters/project_presenter_spec.rb
+1
-1
No files found.
app/assets/stylesheets/framework/secondary_navigation_elements.scss
View file @
3f177814
// For tabbed navigation links, scrolling tabs, etc. For all top/main navigation,
// please check nav.scss
.nav-links
{
.nav-links
:not
(
.quick-links
)
{
display
:
flex
;
padding
:
0
;
margin
:
0
;
...
...
@@ -106,7 +106,7 @@
display
:
inline-block
;
float
:
right
;
text-align
:
right
;
padding
:
11px
0
;
padding
:
$gl-padding-8
0
;
margin-bottom
:
0
;
>
.btn
,
...
...
app/presenters/project_presenter.rb
View file @
3f177814
...
...
@@ -176,7 +176,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
AnchorData
.
new
(
false
,
_
(
'New file'
),
project_new_blob_path
(
project
,
default_branch
||
'master'
),
'
new
'
)
'
success
'
)
end
end
...
...
app/views/projects/empty.html.haml
View file @
3f177814
...
...
@@ -36,7 +36,7 @@
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
.fade-left
=
icon
(
'angle-left'
)
.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_buttons
...
...
app/views/projects/show.html.haml
View file @
3f177814
...
...
@@ -22,7 +22,7 @@
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
.fade-left
=
icon
(
'angle-left'
)
.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_buttons
(
show_auto_devops_callout:
show_auto_devops_callout
)
...
...
changelogs/unreleased/gt-fix-quick-links-button-styles.yml
0 → 100644
View file @
3f177814
---
title
:
Fix quick links button styles
merge_request
:
22657
author
:
George Tsiolis
type
:
fixed
spec/presenters/project_presenter_spec.rb
View file @
3f177814
...
...
@@ -239,7 +239,7 @@ describe ProjectPresenter do
expect
(
presenter
.
new_file_anchor_data
).
to
have_attributes
(
enabled:
false
,
label:
"New file"
,
link:
presenter
.
project_new_blob_path
(
project
,
'master'
),
class_modifier:
'
new
'
)
class_modifier:
'
success
'
)
end
it
'returns nil if user cannot push'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment