BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
36714377
Commit
36714377
authored
Mar 27, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combine milestone start and end dates in collapsed sidebar
parent
3b513675
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
milestone.scss
app/assets/stylesheets/pages/milestone.scss
+12
-0
_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+19
-9
No files found.
app/assets/stylesheets/pages/milestone.scss
View file @
36714377
...
...
@@ -68,6 +68,18 @@
}
}
.collapsed-milestone-date
{
font-size
:
12px
;
}
.milestone-date
{
display
:
block
;
}
.date-separator
{
line-height
:
5px
;
}
.remaining-days
strong
{
font-weight
:
normal
;
}
...
...
app/views/shared/milestones/_sidebar.html.haml
View file @
36714377
...
...
@@ -17,16 +17,12 @@
.value.hide-collapsed
=
milestone_progress_bar
(
milestone
)
.block.start_date
.sidebar-collapsed-icon
=
icon
(
'calendar'
,
'aria-hidden'
:
'true'
)
%span
.js-due-date-sidebar-value
=
milestone
.
start_date
.
try
(
:to_s
,
:medium
)
||
'None'
.title.hide-collapsed
.block.start_date.hide-collapsed
.title
Start date
-
if
@project
&&
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
'Edit'
,
edit_namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
class:
'edit-link pull-right'
.value
.hide-collapsed
.value
%span
.value-content
-
if
milestone
.
start_date
%span
.bold
=
milestone
.
start_date
.
to_s
(
:medium
)
...
...
@@ -36,8 +32,22 @@
.block.due_date
.sidebar-collapsed-icon
=
icon
(
'calendar'
,
'aria-hidden'
:
'true'
)
%span
.js-due-date-sidebar-value
=
milestone
.
due_date
.
try
(
:to_s
,
:medium
)
||
'None'
%span
.collapsed-milestone-date
-
if
milestone
.
start_date
&&
milestone
.
due_date
-
if
milestone
.
start_date
.
year
==
milestone
.
due_date
.
year
.milestone-date
=
milestone
.
start_date
.
strftime
(
'%b %-d'
)
-
else
.milestone-date
=
milestone
.
start_date
.
strftime
(
'%b %-d %Y'
)
.date-separator
-
.due_date
=
milestone
.
due_date
.
strftime
(
'%b %-d %Y'
)
-
elsif
milestone
.
start_date
From
.milestone-date
=
milestone
.
start_date
.
strftime
(
'%b %-d %Y'
)
-
elsif
milestone
.
due_date
Until
.milestone-date
=
milestone
.
due_date
.
strftime
(
'%b %-d %Y'
)
-
else
None
.title.hide-collapsed
Due date
-
if
@project
&&
can?
(
current_user
,
:admin_milestone
,
@project
)
...
...
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