Improved graph in summary page with some styling and titles

stable
Xavier Julián 2014-10-02 02:29:24 +02:00 committed by David Barragán Merino
parent 684f066863
commit 3e2bbf24b2
2 changed files with 16 additions and 21 deletions

View File

@ -978,9 +978,9 @@ module.directive("tgGmBacklogGraph", tgBacklogGraphDirective)
TgBacklogProgressBarDirective = ->
template = _.template("""
<div class="defined-points"></div>
<div class="project-points-progress" style="width: <%- projectPointsPercentaje %>%"></div>
<div class="closed-points-progress" style="width: <%- closedPointsPercentaje %>%"></div>
<div class="defined-points" title="Excess of points"></div>
<div class="project-points-progress" title="Pending Points" style="width: <%- projectPointsPercentaje %>%"></div>
<div class="closed-points-progress" title="Closed points" style="width: <%- closedPointsPercentaje %>%"></div>
""")
render = (el, projectPointsPercentaje, closedPointsPercentaje) ->

View File

@ -54,26 +54,21 @@
padding: 3px;
position: relative;
width: 15%;
.current-progress {
background: $fresh-taiga;
height: 24px;
width: calc(30% - 4px);
}
.defined-points {
width: 100%;
background: red;
background: $red-light;
height: 24px;
position: absolute;
width: calc(100% - 6px);
}
.project-points-progress {
background: gray;
background: $white;
height: 24px;
position: absolute;
}
.closed-points-progress {
background: $fresh-taiga;
height: 24px;
position: absolute;
background: green;
}
}