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
d0d9980c
Commit
d0d9980c
authored
Apr 04, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert capitalization scheme to sentence case
parent
bc7d2588
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/burndown_chart/index.js
app/assets/javascripts/burndown_chart/index.js
+3
-3
app/views/shared/milestones/_burndown.html.haml
app/views/shared/milestones/_burndown.html.haml
+3
-3
No files found.
app/assets/javascripts/burndown_chart/index.js
View file @
d0d9980c
...
...
@@ -23,7 +23,7 @@ $(() => {
const
chart
=
new
BurndownChart
({
container
,
startDate
,
dueDate
});
let
currentView
=
'
count
'
;
chart
.
setData
(
openIssuesCount
,
{
label
:
'
Open
I
ssues
'
,
animate
:
true
});
chart
.
setData
(
openIssuesCount
,
{
label
:
'
Open
i
ssues
'
,
animate
:
true
});
$
(
'
.burndown-header
'
).
on
(
'
click
'
,
'
.btn
'
,
function
switchData
()
{
const
$this
=
$
(
this
);
...
...
@@ -33,10 +33,10 @@ $(() => {
$this
.
addClass
(
'
active
'
).
siblings
().
removeClass
(
'
active
'
);
switch
(
show
)
{
case
'
count
'
:
chart
.
setData
(
openIssuesCount
,
{
label
:
'
Open
I
ssues
'
,
animate
:
true
});
chart
.
setData
(
openIssuesCount
,
{
label
:
'
Open
i
ssues
'
,
animate
:
true
});
break
;
case
'
weight
'
:
chart
.
setData
(
openIssuesWeight
,
{
label
:
'
Open
Issue W
eight
'
,
animate
:
true
});
chart
.
setData
(
openIssuesWeight
,
{
label
:
'
Open
issue w
eight
'
,
animate
:
true
});
break
;
default
:
break
;
...
...
app/views/shared/milestones/_burndown.html.haml
View file @
d0d9980c
...
...
@@ -10,12 +10,12 @@
-
if
burndown
&
.
valid?
.burndown-header
%h3
Burndown
C
hart
Burndown
c
hart
.btn-group
%button
.btn.btn-xs.active
{
data:
{
show:
'count'
}
}
Issues
%button
.btn.btn-xs
{
data:
{
show:
'weight'
}
}
Issue
W
eight
Issue
w
eight
.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?
...
...
@@ -26,7 +26,7 @@
=
custom_icon
(
'icon_burndown_chart_splash'
)
.col-sm-8.col-xs-12.inner-content
%h4
Burndown
C
hart
Burndown
c
hart
%p
View your milestone's progress as a burndown chart. Add both a start and a due date to
this milestone and the chart will appear here, always up-to-date.
...
...
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