Better display which applications have been voted or not

This commit is contained in:
2014-07-15 11:12:02 +02:00
parent 65440a2c31
commit 1b7453c4af

View File

@@ -3,22 +3,23 @@
<div class="row">
<div class="col-md-12">
<h1>BFCT Applications</h1>
<table class="table table-striped table-hover">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th class="content-align-center">#</th>
<th>Name</th>
<th>Country</th>
<th>Submission Date</th>
<th>Submitted On</th>
<th>Status</th>
<th class="content-align-center">Voted</th>
<th class="content-align-center">Approvals</th>
<th></th>
</tr>
</thead>
<tbody>
{% for application in applications %}
<tr class="{% if application.is_reviewed() %}reviewed{% endif %}">
<td class="relative">{{ application.id }}</td>
<tr class="{% if not application.is_reviewed() %}danger{% endif %}">
<td class="relative content-align-center">{{ application.id }}</td>
<td><a href="{{url_for('applications.view', id=application.id)}}" >
{{application.user.first_name}} {{application.user.last_name}}
</a>
@@ -40,6 +41,13 @@
{% endif %}
</a>
</td>
<td class="content-align-center">
{% if application.is_reviewed() %}
<i class="fa fa-check" title="You voted for this applicant"></i>
{% else %}
<i class="fa fa-times danger" title="You haven't voted yet, tsk!"></i>
{% endif %}
</td>
<td class="content-align-center">
{{application.approve}}
/