mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
folder rename; future commits make sense after this
This commit is contained in:
parent
09d0f09d8e
commit
f473a4234e
71 changed files with 0 additions and 0 deletions
44
funding/templates/proposal/macros/table.html
Normal file
44
funding/templates/proposal/macros/table.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
{% macro proposal_table(title, status, _proposals) %}
|
||||
<table class="table table-proposal table-hover" data-status="{{ status }}" style="margin-bottom:6px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="font-size: 20px;">{{title}}</th>
|
||||
<th>Username</th>
|
||||
<th id="date">Date</th>
|
||||
{% if _proposals and _proposals[0].status >= 2 %}
|
||||
<th style="text-align: right;">Funding</th>
|
||||
{% else %}
|
||||
<th></th>
|
||||
{% endif %}
|
||||
<th style="display: table-cell;text-align: center;">
|
||||
<img width="24" src="/static/msg.png">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for p in _proposals %}
|
||||
<tr>
|
||||
<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>
|
||||
<td class="date"><small>{{ p.date_added.strftime('%Y-%m-%d %H:%M') }}</small></td>
|
||||
<td class="funds">
|
||||
<span style="float:right;">
|
||||
{% if p.funds_progress >= 0.1 and p.status >= 2 %}
|
||||
{{p.funds_progress|int}}%
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</span>
|
||||
</td>
|
||||
<td style="text-align:center;">
|
||||
{% if p.comment_count %}
|
||||
{{p.comment_count}}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue