Skip to content

Commit

Permalink
Gráficos.
Browse files Browse the repository at this point in the history
  • Loading branch information
camargozzini committed May 7, 2014
1 parent 6f715bd commit 45c08f6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions deldichoalhecho/queryset.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from django.db import models

class PromiseSummary(object):
Expand Down
15 changes: 15 additions & 0 deletions deldichoalhecho_theme/static/deldichoalhecho/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,24 @@ h3.panel-title {
text-align: right;
background-color: #821E5F;
font-weight: 300;
}

#categories .progress-bar {
padding: 12px 5px;
}

.progress-bar-danger {
background-color: #F0562C;
}

.progress-bar-warning {
background-color: #F8981D;
}

.progress-bar-success {
background-color: #27B885;
}



div.status.not-accomplished:before {
Expand Down
17 changes: 8 additions & 9 deletions deldichoalhecho_theme/templates/summary.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<dl class="dl-horizontal">
<dt>Completado</dt>
<dd>{{summary.accomplished}}</dd>
<dt>En proceso</dt>
<dd>{{summary.in_progress}}</dd>
<dt>Sin proceso</dt>
<dd>{{summary.no_progress}}</dd>
</dl>
<div class="container">
<ul class="list-inline">
<li>Completado <strong>{{summary.accomplished_percentage|floatformat}}%</strong></li>
<li>En proceso <strong>{{summary.in_progress_percentage|floatformat}}%</strong></li>
<li>Sin avance <strong>{{summary.no_progress_percentage|floatformat}}%</strong></li>
</ul>
</div>

<div class="progress">
<div class="progress-bar progress-bar-success" style="width: {{summary.accomplished_percentage}}%">
Expand All @@ -15,6 +14,6 @@
<span class="sr-only">{{summary.in_progress_percentage}}% en proceso</span>
</div>
<div class="progress-bar progress-bar-danger" style="width: {{summary.no_progress_percentage}}%">
<span class="sr-only">{{summary.no_progress_percentage}}% sin avance</span>
<span class="">{{summary.no_progress_percentage}}% sin avance</span>
</div>
</div>

0 comments on commit 45c08f6

Please sign in to comment.