Juanfran 2014-08-19 12:15:22 +02:00
parent ffed61dfeb
commit ad7b8ea340
3 changed files with 4 additions and 5 deletions

View File

@ -429,7 +429,7 @@ ListItemTypeDirective = ->
TgProgressBarDirective = -> TgProgressBarDirective = ->
template = _.template(""" template = _.template("""
<div class="current-progress" style="width: calc(<%- percentage %>% - 4px)"></div> <div class="current-progress" style="width: <%- percentage %>%"></div>
""") """)
render = (el, percentage) -> render = (el, percentage) ->

View File

@ -1,5 +1,6 @@
div.summary div.summary
div.summary-progress-bar(tg-progress-bar="stats.completedPercentage") div.summary-progress-bar(tg-progress-bar="stats.completedPercentage")
div.current-progress(style="width: {{stats.completedPercentage}}")
div.data div.data
span.number(tg-bind-html="stats.completedPercentage + '%'") span.number(tg-bind-html="stats.completedPercentage + '%'")
ul ul

View File

@ -48,17 +48,15 @@
.summary-progress-bar { .summary-progress-bar {
background: $whitish; background: $whitish;
float: left; float: left;
height: 31px; height: 30px;
margin-bottom: 0; margin-bottom: 0;
margin-right: 10px; margin-right: 10px;
padding: 3px;
position: relative; position: relative;
width: 20%; width: 20%;
.current-progress { .current-progress {
background: $fresh-taiga; background: $fresh-taiga;
height: 24px; height: 24px;
left: 2px;
position: absolute;
top: 3px;
width: calc(30% - 4px); width: calc(30% - 4px);
} }
} }