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
f4d52e84
Commit
f4d52e84
authored
May 25, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added back total weight on milestone view
Closes #501
parent
ba9bb272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
app/views/shared/milestones/_summary.html.haml
app/views/shared/milestones/_summary.html.haml
+9
-2
No files found.
app/views/shared/milestones/_summary.html.haml
View file @
f4d52e84
...
...
@@ -14,8 +14,15 @@
%strong
==
#{
milestone
.
percent_complete
(
current_user
)
}
%
complete
%span
.milestone-stat
%span
.remaining-days
=
milestone_remaining_days
(
milestone
)
-
remaining_days
=
milestone_remaining_days
(
milestone
)
-
if
remaining_days
%span
.milestone-stat
%span
.remaining-days
=
remaining_days
-
total_weight
=
milestone
.
issues_visible_to_user
(
current_user
).
sum
(
:weight
)
-
unless
total_weight
.
zero?
%span
.milestone-stat
Total weight:
%strong
=
total_weight
%span
.pull-right.tab-issues-buttons
-
if
project
&&
can?
(
current_user
,
:create_issue
,
project
)
=
link_to
new_namespace_project_issue_path
(
project
.
namespace
,
project
,
issue:
{
milestone_id:
milestone
.
id
}),
class:
"btn btn-grouped"
,
title:
"New Issue"
do
...
...
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