Group attract projects as cards in index

This commit is contained in:
2016-11-03 16:33:32 +01:00
parent f3d21fc0de
commit 24ba270a9b
2 changed files with 31 additions and 18 deletions

View File

@@ -89,13 +89,18 @@
.dashboard .dashboard
.d-stats .d-stats
padding: 0 20px padding: 0 20px
.d-stats-card
+container-box
padding: 10px
.progress
margin-bottom: 0
h4
margin-top: 0
font-weight: normal
.d-activity .d-activity
padding: 5px 15px
margin: 0 20px 15px margin: 0 20px 15px
+container-box
h3
margin-top: 10px
a a
color: $color-text-dark-primary color: $color-text-dark-primary

View File

@@ -14,21 +14,29 @@
#col_right #col_right
.dashboard .dashboard
.d-stats .d-stats
h3 Shot Statistics h3 Attract Projects
| {% for proj, summary in projs_with_summaries %} | {% for proj, summary in projs_with_summaries %}
h4 .d-stats-card
a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") {{ proj.name }} h4
.progress a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") {{ proj.name }}
| {% for status, percentage in summary.percentages() %}
.progress-bar.bg-status( span.pull-right
class="status-{{status}}", a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") Shots 
title="{{ status | undertitle }}", | |
role="progressbar", a(href="{{ url_for('attract.tasks.perproject.index', project_url=proj.url) }}") Tasks
style="width:{{percentage}}%") .progress
| {{ status | undertitle }} | {% for status, percentage in summary.percentages() %}
.progress-bar.bg-status(
class="status-{{status}}",
title="{{ status | undertitle }} ({{percentage}}%)",
role="progressbar",
style="width:{{percentage}}%")
| {{ status | undertitle }}
| {% endfor %}
| {% endfor %} | {% endfor %}
| {% endfor %}
hr
.d-activity .d-activity
h3 Activity Stream h3 Activity Stream