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 = ->
template = _.template("""
<div class="current-progress" style="width: calc(<%- percentage %>% - 4px)"></div>
<div class="current-progress" style="width: <%- percentage %>%"></div>
""")
render = (el, percentage) ->

View File

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

View File

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