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;
|
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 {
|
||||||
|
@ -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>
|
||||||
|
@ -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> {{sbm.url}}</a>
|
<a href="{{sbm.url}}"><i class="fa fa-fw fa-globe"></i> {{sbm.url}}</a>
|
||||||
<div class="vote-btns">
|
<div class="vote-btns">
|
||||||
<div class="vote-positive"><i class="fa fa-fw fa-thumbs-up"></i> {{sbm.positives}}</div>
|
<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 class="vote-negative"><i class="fa fa-fw fa-thumbs-down"></i> {{sbm.negatives}}</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{% empty %}
|
||||||
|
<h3>Nobody has submitted any links yet.</h3>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user