parent
9759769300
commit
2545eecd17
@ -1,44 +1,55 @@
|
|||||||
{% macro proposal_table(title, status, _proposals) %}
|
{% macro proposal_table(title, status, _proposals) %}
|
||||||
<table class="table table-proposal table-hover" data-status="{{ status }}" style="margin-bottom:6px;">
|
<div class="wowtable" data-status="{{ status }}" style="{% if status == 4 %}opacity: 0.3;{% endif %}">
|
||||||
<thead>
|
<div class="trow header">
|
||||||
<tr>
|
<div class="item comments">
|
||||||
<th style="font-size: 18px;">{{title}}</th>
|
<img style="padding-top:2px;" width="24" src="/static/msg.png">
|
||||||
<th>Username</th>
|
</div>
|
||||||
<th id="date">Date</th>
|
<div class="item small">
|
||||||
{% if _proposals and _proposals[0].status >= 2 %}
|
<span>Funded</span>
|
||||||
<th style="text-align: right;">Funded</th>
|
</div>
|
||||||
{% else %}
|
<div class="item small">
|
||||||
<th></th>
|
<span class="alignl">Date</span>
|
||||||
{% endif %}
|
</div>
|
||||||
<th style="display: table-cell;text-align: center;">
|
<div class="item small">
|
||||||
<img width="24" src="/static/msg.png">
|
<span class="alignl">Username</span>
|
||||||
</th>
|
</div>
|
||||||
</tr>
|
<div class="item big">
|
||||||
</thead>
|
<span>{{title}}</span>
|
||||||
<tbody>
|
</div>
|
||||||
{% for p in _proposals %}
|
</div>
|
||||||
<tr>
|
<div class="trow divider"></div>
|
||||||
<td class="id"><b><a href="/proposal/{{ p.id }}">{{ p.headline }}</a></b></td>
|
|
||||||
<td class="user"><a href="/user/{{ p.user.username }}">{{ p.user.username }}</a></td>
|
{% for p in _proposals %}
|
||||||
<td class="date"><small>{{ p.date_added.strftime('%Y-%m-%d %H:%M') }}</small></td>
|
<div class="trow body">
|
||||||
<td class="funds">
|
<div class="item comments">
|
||||||
<span style="float:right;">
|
<span>
|
||||||
{% if p.funds_progress >= 0.1 and p.status >= 2 %}
|
{% if p.comment_count %}
|
||||||
{{p.funds_progress|int}}%
|
{{p.comment_count}}
|
||||||
{% else %}
|
{% else %}
|
||||||
-
|
-
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</div>
|
||||||
<td style="text-align:center;">
|
<div class="item small">
|
||||||
{% if p.comment_count %}
|
<span>
|
||||||
{{p.comment_count}}
|
{% if p.funds_progress >= 0.1 and p.status >= 2 %}
|
||||||
{% else %}
|
{{p.funds_progress|int}}%
|
||||||
-
|
{% else %}
|
||||||
{% endif %}
|
-
|
||||||
</td>
|
{% endif %}
|
||||||
</tr>
|
</span>
|
||||||
{% endfor %}
|
</div>
|
||||||
</tbody>
|
<div class="item small">
|
||||||
</table>
|
<span class="alignl">{{ p.date_added.strftime('%Y-%m-%d') }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="item small">
|
||||||
|
<span class="alignl"><a href="/user/{{ p.user.username }}">{{ p.user.username }}</a></span>
|
||||||
|
</div>
|
||||||
|
<div class="item big">
|
||||||
|
<a href="/proposal/{{ p.id }}">{{ p.headline }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
Loading…
Reference in new issue