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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8a0acaf8
Commit
8a0acaf8
authored
May 31, 2018
by
Annabel Gray
Committed by
Clement Ho
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix active tab styling
parent
afac3f02
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
26 deletions
+36
-26
app/assets/stylesheets/bootstrap_migration.scss
app/assets/stylesheets/bootstrap_migration.scss
+8
-2
app/assets/stylesheets/framework/gitlab_theme.scss
app/assets/stylesheets/framework/gitlab_theme.scss
+7
-4
app/assets/stylesheets/framework/secondary_navigation_elements.scss
.../stylesheets/framework/secondary_navigation_elements.scss
+7
-6
app/views/shared/milestones/_tabs.html.haml
app/views/shared/milestones/_tabs.html.haml
+10
-10
spec/features/projects/milestones/milestone_spec.rb
spec/features/projects/milestones/milestone_spec.rb
+4
-4
No files found.
app/assets/stylesheets/bootstrap_migration.scss
View file @
8a0acaf8
...
...
@@ -148,8 +148,14 @@ table {
}
}
.nav-tabs
.nav-link
{
.nav-tabs
{
.nav-link
{
border
:
0
;
}
.nav-item
{
margin-bottom
:
0
;
}
}
pre
code
{
...
...
app/assets/stylesheets/framework/gitlab_theme.scss
View file @
8a0acaf8
...
...
@@ -169,13 +169,16 @@
color
:
$color-800
;
}
.nav-links
li
a
.active
{
.nav-links
li
{
&
.active
a
,
a
.active
{
border-bottom
:
2px
solid
$color-500
;
.badge.badge-pill
{
font-weight
:
$gl-font-weight-bold
;
}
}
}
.branch-header-title
{
color
:
$color-700
;
...
...
app/assets/stylesheets/framework/secondary_navigation_elements.scss
View file @
8a0acaf8
...
...
@@ -31,8 +31,10 @@
color
:
$black
;
}
}
}
&
.active
{
&
.active
a
,
a
.active
{
color
:
$black
;
font-weight
:
$gl-font-weight-bold
;
...
...
@@ -41,7 +43,6 @@
}
}
}
}
}
.top-area
{
...
...
app/views/shared/milestones/_tabs.html.haml
View file @
8a0acaf8
...
...
@@ -5,25 +5,25 @@
.fade-right
=
icon
(
'angle-right'
)
%ul
.nav-links.scrolling-tabs.js-milestone-tabs.nav.nav-tabs
-
if
issues_accessible
%li
.
active
=
link_to
'#tab-issues'
,
'data-toggle'
=>
'tab'
,
'data-show'
=>
'.tab-issues-buttons'
do
%li
.
nav-item
=
link_to
'#tab-issues'
,
class:
'nav-link active'
,
'data-toggle'
=>
'tab'
,
'data-show'
=>
'.tab-issues-buttons'
do
Issues
%span
.badge.badge-pill
=
milestone
.
issues_visible_to_user
(
current_user
).
size
%li
=
link_to
'#tab-merge-requests'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_merge_request_tab_path
(
milestone
)
do
%li
.nav-item
=
link_to
'#tab-merge-requests'
,
class:
'nav-link'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_merge_request_tab_path
(
milestone
)
do
Merge Requests
%span
.badge.badge-pill
=
milestone
.
merge_requests
.
size
-
else
%li
.
active
=
link_to
'#tab-merge-requests'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_merge_request_tab_path
(
milestone
)
do
%li
.
nav-item
=
link_to
'#tab-merge-requests'
,
class:
'nav-link active'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_merge_request_tab_path
(
milestone
)
do
Merge Requests
%span
.badge.badge-pill
=
milestone
.
merge_requests
.
size
%li
=
link_to
'#tab-participants'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_participants_tab_path
(
milestone
)
do
%li
.nav-item
=
link_to
'#tab-participants'
,
class:
'nav-link'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_participants_tab_path
(
milestone
)
do
Participants
%span
.badge.badge-pill
=
milestone
.
participants
.
count
%li
=
link_to
'#tab-labels'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_labels_tab_path
(
milestone
)
do
%li
.nav-item
=
link_to
'#tab-labels'
,
class:
'nav-link'
,
'data-toggle'
=>
'tab'
,
'data-endpoint'
:
milestone_labels_tab_path
(
milestone
)
do
Labels
%span
.badge.badge-pill
=
milestone
.
labels
.
count
...
...
spec/features/projects/milestones/milestone_spec.rb
View file @
8a0acaf8
...
...
@@ -17,8 +17,8 @@ feature 'Project milestone' do
it
'shows issues tab'
do
within
(
'#content-body'
)
do
expect
(
page
).
to
have_link
'Issues'
,
href:
'#tab-issues'
expect
(
page
).
to
have_selector
'.nav-links li.active'
,
count:
1
expect
(
find
(
'.nav-links li.active'
)).
to
have_content
'Issues'
expect
(
page
).
to
have_selector
'.nav-links li
a
.active'
,
count:
1
expect
(
find
(
'.nav-links li
a
.active'
)).
to
have_content
'Issues'
end
end
...
...
@@ -44,8 +44,8 @@ feature 'Project milestone' do
it
'hides issues tab'
do
within
(
'#content-body'
)
do
expect
(
page
).
not_to
have_link
'Issues'
,
href:
'#tab-issues'
expect
(
page
).
to
have_selector
'.nav-links li.active'
,
count:
1
expect
(
find
(
'.nav-links li.active'
)).
to
have_content
'Merge Requests'
expect
(
page
).
to
have_selector
'.nav-links li
a
.active'
,
count:
1
expect
(
find
(
'.nav-links li
a
.active'
)).
to
have_content
'Merge Requests'
end
end
...
...
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