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
2cb3145f
Commit
2cb3145f
authored
Nov 16, 2016
by
tauriedavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update styles of help message and progress bar
parent
b3582109
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
41 deletions
+59
-41
app/assets/javascripts/issuable_time_tracker.js.es6
app/assets/javascripts/issuable_time_tracker.js.es6
+2
-2
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-1
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+55
-37
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
No files found.
app/assets/javascripts/issuable_time_tracker.js.es6
View file @
2cb3145f
...
...
@@ -140,11 +140,11 @@
<div :style='{ width: diffPercent }' class='meter-fill'></div>
</div>
<div class='compare-display-container'>
<div class='compare-display
pull-left
'>
<div class='compare-display'>
<span class='compare-label'>Spent</span>
<span class='compare-value spent'>{{ spentPretty }}</span>
</div>
<div class='compare-display estimated
pull-right
'>
<div class='compare-display estimated'>
<span class='compare-label'>Est</span>
<span class='compare-value'>{{ estimatedPretty }}</span>
</div>
...
...
app/assets/stylesheets/framework/variables.scss
View file @
2cb3145f
...
...
@@ -5,7 +5,7 @@ $sidebar_collapsed_width: 62px;
$sidebar_width
:
220px
;
$gutter_collapsed_width
:
62px
;
$gutter_width
:
290px
;
$gutter_inner_width
:
25
8
px
;
$gutter_inner_width
:
25
0
px
;
$sidebar-transition-duration
:
.15s
;
$sidebar-breakpoint
:
1024px
;
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
2cb3145f
...
...
@@ -408,63 +408,81 @@
}
}
#issuable-time-tracker
{
.time_tracker
{
padding-bottom
:
0
;
border-bottom
:
0
;
>
.stopwatch-svg
{
display
:
none
;
}
.time-tracking-help-state
{
padding
:
10px
0
;
margin-top
:
10px
;
border-top
:
1px
solid
#dcdcdc
;
}
.meter-container
{
background
:
$gray-lighter
;
border-radius
:
2px
;
}
.meter-fill
{
max-width
:
100%
;
height
:
4px
;
background
:
$gl-text-green
;
.sidebar-collapsed-icon
{
svg
{
width
:
16px
;
height
:
16px
;
fill
:
#999
;
}
}
.help-button
,
.close-help-button
{
cursor
:
pointer
;
}
.over_estimate
{
.meter-fill
{
background
:
$red-light
;
}
.time-remaining
,
.compare-value.spent
{
color
:
$red-light
;
.compare-meter
{
&
.within_estimate
{
.meter-fill
{
background
:
$gl-primary
;
}
}
}
.sidebar-collapsed-icon
{
svg
{
width
:
16px
;
height
:
16px
;
fill
:
#999
;
&
.over_estimate
{
.meter-fill
{
background
:
$red-light
;
}
.time-remaining
,
.compare-value.spent
{
color
:
$red-light
;
}
}
}
.within_estimate
{
.meter-container
{
background
:
$border-gray-light
;
border-radius
:
3px
;
.meter-fill
{
background
:
$gl-text-green
;
max-width
:
100%
;
height
:
5px
;
border-radius
:
3px
;
background
:
$gl-primary
;
}
}
.compare-display-container
{
height
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
5px
;
}
.compare-display
{
font-size
:
13px
;
color
:
$gl-gray-light
;
.compare-value
{
color
:
$gl-gray
;
.compare-display
{
font-size
:
13px
;
color
:
$gl-gray-light
;
.compare-value
{
color
:
$gl-gray
;
}
}
}
.time-tracking-help-state
{
transition
:
all
1s
ease-in-out
;
background
:
$white-light
;
margin
:
16px
-20px
0
;
padding
:
16px
20px
;
border-top
:
1px
solid
$border-gray-light
;
border-bottom
:
1px
solid
$border-gray-light
;
a
:hover
{
color
:
$btn-white-active
;
}
}
}
app/views/shared/issuable/_sidebar.html.haml
View file @
2cb3145f
...
...
@@ -73,7 +73,7 @@
=
f
.
hidden_field
'milestone_id'
,
value:
issuable
.
milestone_id
,
id:
nil
=
dropdown_tag
(
'Milestone'
,
options:
{
title:
'Assign milestone'
,
toggle_class:
'js-milestone-select js-extra-options'
,
filter:
true
,
dropdown_class:
'dropdown-menu-selectable'
,
placeholder:
'Search milestones'
,
data:
{
show_no:
true
,
field_name:
"
#{
issuable
.
to_ability_name
}
[milestone_id]"
,
project_id:
@project
.
id
,
issuable_id:
issuable
.
id
,
milestones:
namespace_project_milestones_path
(
@project
.
namespace
,
@project
,
:json
),
ability_name:
issuable
.
to_ability_name
,
issue_update:
issuable_json_path
(
issuable
),
use_id:
true
}})
-
if
issuable
.
has_attribute?
(
:time_estimate
)
#issuable-time-tracker
.block
#issuable-time-tracker
.block
.time_tracker
%issuable-time-tracker
{
':time_estimate'
=>
'issuable.time_estimate'
,
':time_spent'
=>
'issuable.total_time_spent'
,
':human_time_estimate'
=>
'issuable.human_time_estimate'
,
':human_time_spent'
=>
'issuable.human_total_time_spent'
}
// Fallback while content is loading
.title.hide-collapsed
...
...
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