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
bc7d2588
Commit
bc7d2588
authored
Apr 03, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up burndown empty state logic
parent
1bd74265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
app/views/shared/milestones/_burndown.html.haml
app/views/shared/milestones/_burndown.html.haml
+12
-12
No files found.
app/views/shared/milestones/_burndown.html.haml
View file @
bc7d2588
...
...
@@ -7,7 +7,18 @@
=
page_specific_javascript_bundle_tag
(
'common_d3'
)
=
page_specific_javascript_bundle_tag
(
'burndown_chart'
)
-
unless
can_generate_chart
||
!
can?
(
current_user
,
:admin_milestone
,
@project
)
||
cookies
[
'hide_burndown_message'
].
present?
-
if
burndown
&
.
valid?
.burndown-header
%h3
Burndown Chart
.btn-group
%button
.btn.btn-xs.active
{
data:
{
show:
'count'
}
}
Issues
%button
.btn.btn-xs
{
data:
{
show:
'weight'
}
}
Issue Weight
.burndown-chart
{
data:
{
start_date:
milestone
.
start_date
.
strftime
(
"%Y-%m-%d"
),
due_date:
milestone
.
due_date
.
strftime
(
"%Y-%m-%d"
),
chart_data:
burndown
.
chart_data
.
to_json
}
}
-
elsif
can?
(
current_user
,
:admin_milestone
,
@project
)
&&
cookies
[
'hide_burndown_message'
].
nil?
.burndown-hint.content-block.container-fluid
=
icon
(
"times"
,
class:
"dismiss-icon"
)
.row
...
...
@@ -21,14 +32,3 @@
this milestone and the chart will appear here, always up-to-date.
=
link_to
"Add start and due date"
,
edit_namespace_project_milestone_path
(
project
.
namespace
,
project
,
milestone
),
class:
'btn'
-
if
can_generate_chart
.burndown-header
%h3
Burndown Chart
.btn-group
%button
.btn.btn-xs.active
{
data:
{
show:
'count'
}
}
Issues
%button
.btn.btn-xs
{
data:
{
show:
'weight'
}
}
Issue Weight
.burndown-chart
{
data:
{
start_date:
milestone
.
start_date
.
strftime
(
"%Y-%m-%d"
),
due_date:
milestone
.
due_date
.
strftime
(
"%Y-%m-%d"
),
chart_data:
burndown
.
chart_data
.
to_json
}
}
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