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-activity
padding: 5px 15px .d-stats-card
margin: 0 20px 15px
+container-box +container-box
padding: 10px
h3 .progress
margin-top: 10px margin-bottom: 0
h4
margin-top: 0
font-weight: normal
.d-activity
margin: 0 20px 15px
a a
color: $color-text-dark-primary color: $color-text-dark-primary

View File

@@ -14,22 +14,30 @@
#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 %}
.d-stats-card
h4 h4
a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") {{ proj.name }} a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") {{ proj.name }}
span.pull-right
a(href="{{ url_for('attract.shots.perproject.index', project_url=proj.url) }}") Shots 
| |
a(href="{{ url_for('attract.tasks.perproject.index', project_url=proj.url) }}") Tasks
.progress .progress
| {% for status, percentage in summary.percentages() %} | {% for status, percentage in summary.percentages() %}
.progress-bar.bg-status( .progress-bar.bg-status(
class="status-{{status}}", class="status-{{status}}",
title="{{ status | undertitle }}", title="{{ status | undertitle }} ({{percentage}}%)",
role="progressbar", role="progressbar",
style="width:{{percentage}}%") style="width:{{percentage}}%")
| {{ status | undertitle }} | {{ status | undertitle }}
| {% endfor %} | {% endfor %}
| {% endfor %} | {% endfor %}
hr
.d-activity .d-activity
h3 Activity Stream h3 Activity Stream