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
3b513675
Commit
3b513675
authored
Mar 27, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add start date to sidebar and display dates on group and dashboard views when possible
parent
8dafec40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
20 deletions
+35
-20
app/views/shared/milestones/_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+35
-20
No files found.
app/views/shared/milestones/_sidebar.html.haml
View file @
3b513675
...
@@ -17,26 +17,41 @@
...
@@ -17,26 +17,41 @@
.value.hide-collapsed
.value.hide-collapsed
=
milestone_progress_bar
(
milestone
)
=
milestone_progress_bar
(
milestone
)
-
if
project
.block.start_date
.block.due_date
.sidebar-collapsed-icon
.sidebar-collapsed-icon
=
icon
(
'calendar'
,
'aria-hidden'
:
'true'
)
=
icon
(
'calendar'
,
'aria-hidden'
:
'true'
)
%span
.js-due-date-sidebar-value
%span
.js-due-date-sidebar-value
=
milestone
.
start_date
.
try
(
:to_s
,
:medium
)
||
'None'
=
milestone
.
due_date
.
try
(
:to_s
,
:medium
)
||
'None'
.title.hide-collapsed
.title.hide-collapsed
Start date
Due date
-
if
@project
&&
can?
(
current_user
,
:admin_milestone
,
@project
)
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
'Edit'
,
edit_namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
class:
'edit-link pull-right'
=
link_to
'Edit'
,
edit_namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
@milestone
),
class:
'edit-link pull-right'
.value.hide-collapsed
.value.hide-collapsed
%span
.value-content
%span
.value-content
-
if
milestone
.
start_date
-
if
milestone
.
due_date
%span
.bold
=
milestone
.
start_date
.
to_s
(
:medium
)
%span
.bold
=
milestone
.
due_date
.
to_s
(
:medium
)
-
else
-
else
%span
.no-value
No start date
%span
.no-value
No due date
-
remaining_days
=
milestone_remaining_days
(
milestone
)
.block.due_date
-
if
remaining_days
.
present?
.sidebar-collapsed-icon
=
surround
'('
,
')'
do
=
icon
(
'calendar'
,
'aria-hidden'
:
'true'
)
%span
.remaining-days
=
remaining_days
%span
.js-due-date-sidebar-value
=
milestone
.
due_date
.
try
(
:to_s
,
:medium
)
||
'None'
.title.hide-collapsed
Due 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
%span
.value-content
-
if
milestone
.
due_date
%span
.bold
=
milestone
.
due_date
.
to_s
(
:medium
)
-
else
%span
.no-value
No due date
-
remaining_days
=
milestone_remaining_days
(
milestone
)
-
if
remaining_days
.
present?
=
surround
'('
,
')'
do
%span
.remaining-days
=
remaining_days
-
if
!
project
||
can?
(
current_user
,
:read_issue
,
project
)
-
if
!
project
||
can?
(
current_user
,
:read_issue
,
project
)
.block
.block
...
...
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