Show - Show empty message for no submitted links
This commit is contained in:
parent
f6895e7d25
commit
4adab93c3a
@ -155,6 +155,7 @@ a.episode .submission_cnt {
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
.vote-positive {
|
||||
background-color: #a4ffa7;
|
||||
@ -164,11 +165,8 @@ a.episode .submission_cnt {
|
||||
background-color: #ffa6a6;
|
||||
color: #ab0000;
|
||||
}
|
||||
.submission.buried .vote-btns{
|
||||
opacity: 0.5;
|
||||
}
|
||||
.submission.buried a {
|
||||
color: #d2d2d2;
|
||||
.submission-list .submission.buried {
|
||||
opacity: 0.3;
|
||||
}
|
||||
@media all and (max-width: 800px) {
|
||||
.logo {
|
||||
|
@ -25,7 +25,7 @@
|
||||
<div class="content">
|
||||
{% if not recent %} Nothing to show {% endif %}
|
||||
{% 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}}">
|
||||
<span>{{show.name}}</span>
|
||||
</a>
|
||||
|
@ -19,13 +19,15 @@
|
||||
<h1>Watch <q>{{episode.name}}</q> From</h1>
|
||||
<div class="submission-list">
|
||||
{% for sbm in submissions %}
|
||||
<div class="submission{% if sbm.positives < sbm.negatives %} buried{% endif %}">
|
||||
<a href="{{sbm.url}}"><i class="fa fa-fw fa-globe"></i> {{sbm.url}}</a>
|
||||
<div class="vote-btns">
|
||||
<div class="vote-positive"><i class="fa fa-fw fa-thumbs-up"></i> {{sbm.positives}}</div>
|
||||
<div class="vote-negative"><i class="fa fa-fw fa-thumbs-down"></i> {{sbm.negatives}}</div>
|
||||
</div>
|
||||
<div class="submission{% if sbm.positives < sbm.negatives %} buried{% endif %}">
|
||||
<a href="{{sbm.url}}"><i class="fa fa-fw fa-globe"></i> {{sbm.url}}</a>
|
||||
<div class="vote-btns">
|
||||
<div class="vote-positive"><i class="fa fa-fw fa-thumbs-up"></i> {{sbm.positives}}</div>
|
||||
<div class="vote-negative"><i class="fa fa-fw fa-thumbs-down"></i> {{sbm.negatives}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<h3>Nobody has submitted any links yet.</h3>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user