Show - Show empty message for no submitted links

This commit is contained in:
Evert Prants 2017-11-10 17:47:45 +02:00
parent f6895e7d25
commit 4adab93c3a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 12 additions and 12 deletions

View File

@ -155,6 +155,7 @@ a.episode .submission_cnt {
text-align: center; text-align: center;
border-radius: 5px; border-radius: 5px;
font-weight: bold; font-weight: bold;
cursor: pointer;
} }
.vote-positive { .vote-positive {
background-color: #a4ffa7; background-color: #a4ffa7;
@ -164,11 +165,8 @@ a.episode .submission_cnt {
background-color: #ffa6a6; background-color: #ffa6a6;
color: #ab0000; color: #ab0000;
} }
.submission.buried .vote-btns{ .submission-list .submission.buried {
opacity: 0.5; opacity: 0.3;
}
.submission.buried a {
color: #d2d2d2;
} }
@media all and (max-width: 800px) { @media all and (max-width: 800px) {
.logo { .logo {

View File

@ -25,7 +25,7 @@
<div class="content"> <div class="content">
{% if not recent %} Nothing to show {% endif %} {% if not recent %} Nothing to show {% endif %}
{% for show in recent %} {% for show in recent %}
<a class="show-promo" href="#"> <a class="show-promo" href="/show/{{show.abbr}}">
<img class="artwork" src="/media/uploaded_resources/{{show.artwork}}"> <img class="artwork" src="/media/uploaded_resources/{{show.artwork}}">
<span>{{show.name}}</span> <span>{{show.name}}</span>
</a> </a>

View File

@ -19,13 +19,15 @@
<h1>Watch <q>{{episode.name}}</q> From</h1> <h1>Watch <q>{{episode.name}}</q> From</h1>
<div class="submission-list"> <div class="submission-list">
{% for sbm in submissions %} {% for sbm in submissions %}
<div class="submission{% if sbm.positives < sbm.negatives %} buried{% endif %}"> <div class="submission{% if sbm.positives < sbm.negatives %} buried{% endif %}">
<a href="{{sbm.url}}"><i class="fa fa-fw fa-globe"></i>&nbsp;{{sbm.url}}</a> <a href="{{sbm.url}}"><i class="fa fa-fw fa-globe"></i>&nbsp;{{sbm.url}}</a>
<div class="vote-btns"> <div class="vote-btns">
<div class="vote-positive"><i class="fa fa-fw fa-thumbs-up"></i>&nbsp;{{sbm.positives}}</div> <div class="vote-positive"><i class="fa fa-fw fa-thumbs-up"></i>&nbsp;{{sbm.positives}}</div>
<div class="vote-negative"><i class="fa fa-fw fa-thumbs-down"></i>&nbsp;{{sbm.negatives}}</div> <div class="vote-negative"><i class="fa fa-fw fa-thumbs-down"></i>&nbsp;{{sbm.negatives}}</div>
</div>
</div> </div>
</div>
{% empty %}
<h3>Nobody has submitted any links yet.</h3>
{% endfor %} {% endfor %}
</div> </div>
</section> </section>