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
d8462638
Commit
d8462638
authored
Nov 02, 2017
by
George Andrinopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix collapsed sidebar messages and icon
parent
f39fe4d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
app/models/global_milestone.rb
app/models/global_milestone.rb
+1
-1
app/models/milestone.rb
app/models/milestone.rb
+1
-1
app/views/shared/icons/_icon_hourglass.svg
app/views/shared/icons/_icon_hourglass.svg
+1
-0
app/views/shared/milestones/_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+10
-4
changelogs/unreleased/39335-add-time-spend-to-milestones.yml
changelogs/unreleased/39335-add-time-spend-to-milestones.yml
+5
-0
No files found.
app/models/global_milestone.rb
View file @
d8462638
...
@@ -158,6 +158,6 @@ class GlobalMilestone
...
@@ -158,6 +158,6 @@ class GlobalMilestone
end
end
def
human_total_time_spent
def
human_total_time_spent
Gitlab
::
TimeTrackingFormatter
.
output
(
total_time_spent
)
||
0
Gitlab
::
TimeTrackingFormatter
.
output
(
total_time_spent
)
end
end
end
end
app/models/milestone.rb
View file @
d8462638
...
@@ -218,7 +218,7 @@ class Milestone < ActiveRecord::Base
...
@@ -218,7 +218,7 @@ class Milestone < ActiveRecord::Base
end
end
def
human_total_time_spent
def
human_total_time_spent
Gitlab
::
TimeTrackingFormatter
.
output
(
total_time_spent
)
||
0
Gitlab
::
TimeTrackingFormatter
.
output
(
total_time_spent
)
end
end
private
private
...
...
app/views/shared/icons/_icon_hourglass.svg
0 → 100644
View file @
d8462638
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
><path
d=
"M10.331 4.889A2.988 2.988 0 0 0 11 3V2H5v1c0 .362.064.709.182 1.03l5.15.859zM3 14v-1c0-1.78.93-3.342 2.33-4.228.447-.327.67-.582.67-.764 0-.19-.242-.46-.725-.815A4.996 4.996 0 0 1 3 3V2H2a1 1 0 1 1 0-2h12a1 1 0 0 1 0 2h-1v1a4.997 4.997 0 0 1-2.39 4.266c-.407.3-.61.545-.61.734 0 .19.203.434.61.734A4.997 4.997 0 0 1 13 13v1h1a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2h1zm8 0v-1a3 3 0 0 0-6 0v1h6z"
/></svg>
app/views/shared/milestones/_sidebar.html.haml
View file @
d8462638
...
@@ -87,13 +87,19 @@
...
@@ -87,13 +87,19 @@
.block.time_spent
.block.time_spent
.sidebar-collapsed-icon
.sidebar-collapsed-icon
%strong
=
custom_icon
(
'icon_hourglass'
)
=
custom_icon
(
'icon_clock_o'
)
%span
.collapsed-milestone-total-time-spent
%span
=
milestone
.
human_total_time_spent
-
if
milestone
.
human_total_time_spent
=
milestone
.
human_total_time_spent
-
else
None
.title.hide-collapsed
.title.hide-collapsed
Total time spent
Total time spent
.value.hide-collapsed
.value.hide-collapsed
=
milestone
.
human_total_time_spent
-
if
milestone
.
human_total_time_spent
%span
.bold
=
milestone
.
human_total_time_spent
-
else
%span
.no-value
No time spent
.block.merge-requests
.block.merge-requests
.sidebar-collapsed-icon
.sidebar-collapsed-icon
...
...
changelogs/unreleased/39335-add-time-spend-to-milestones.yml
0 → 100644
View file @
d8462638
---
title
:
Add total time spent to milestones
merge_request
:
15116
author
:
George Andrinopoulos
type
:
added
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