Some CSS changes

This commit is contained in:
dsc 2019-02-10 01:21:58 +01:00
parent 9759769300
commit 2545eecd17
No known key found for this signature in database
GPG key ID: 7BBC83D7A8810AAB
15 changed files with 221 additions and 96 deletions

View file

@ -24,7 +24,7 @@
<div class="row">
<!-- Post Content Column -->
<div class="col-lg-8">
<div class="col-lg-12">
<h2 style="padding-top:0">Add proposal</h2>
<p style="padding-top:0">
@ -97,8 +97,6 @@
</div>
</form>
</div>
{% include 'sidebar.html' %}
</div>
<!-- /.row -->
{% else %}

View file

@ -1,44 +1,55 @@
{% 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: 18px;">{{title}}</th>
<th>Username</th>
<th id="date">Date</th>
{% if _proposals and _proposals[0].status >= 2 %}
<th style="text-align: right;">Funded</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>
<div class="wowtable" data-status="{{ status }}" style="{% if status == 4 %}opacity: 0.3;{% endif %}">
<div class="trow header">
<div class="item comments">
<img style="padding-top:2px;" width="24" src="/static/msg.png">
</div>
<div class="item small">
<span>Funded</span>
</div>
<div class="item small">
<span class="alignl">Date</span>
</div>
<div class="item small">
<span class="alignl">Username</span>
</div>
<div class="item big">
<span>{{title}}</span>
</div>
</div>
<div class="trow divider"></div>
{% for p in _proposals %}
<div class="trow body">
<div class="item comments">
<span>
{% if p.comment_count %}
{{p.comment_count}}
{% else %}
-
{% endif %}
</span>
</div>
<div class="item small">
<span>
{% if p.funds_progress >= 0.1 and p.status >= 2 %}
{{p.funds_progress|int}}%
{% else %}
-
{% endif %}
</span>
</div>
<div class="item small">
<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 %}

View file

@ -5,7 +5,13 @@
</span>
<span class="height">
<b>Blockheight</b>: {{tx['height']}}</span>
<b>Blockheight</b>:
{% if tx['type'] == 'pool' %}
soon^tm
{% else %}
{{tx['height']}}
{% endif %}
</span>
<br>
<a target="_blank" href="https://explore.wownero.com/tx/{{tx['txid']}}">{{tx['txid'][:32]}}...</a>

View file

@ -6,7 +6,7 @@
{% include 'proposal/macros/navbar.html' %}
<div class="row">
<div class="col-lg-8">
<div class="col-lg-9">
<div class="row">
<div class="col-lg-12">
{% if proposals['proposed'] %}

View file

@ -55,7 +55,7 @@
<div class="row">
<div class="col-md-12">
<div class="card my-4">
<h5 class="card-header">Funds</h5>
<h5 class="card-header">Proposal</h5>
<div class="card-body">
<div class="row the-bar">
<div class="col-lg-4">

View file

@ -6,12 +6,12 @@
{% include 'proposal/macros/navbar.html' %}
<div class="row">
<div class="col-lg-8">
{% if proposals %}
{{ proposal_table(title='', status=status, _proposals=proposals) }}
{% else %}
No proposals here yet.
{% endif %}
<div class="col-lg-9">
{% if proposals %}
{{ proposal_table(title='', status=status, _proposals=proposals) }}
{% else %}
No proposals here yet.
{% endif %}
</div>
{% include 'sidebar.html' %}
</div>