forked from rDrama/rDrama
fix
parent
aa170c88fb
commit
f9ccaa8040
|
@ -101,3 +101,13 @@
|
||||||
.btn-red {
|
.btn-red {
|
||||||
@apply bg-gradient-to-t from-red-700 to-red-600 hover:from-red-600 hover:to-red-700 border-red-900 text-gray-100 focus:text-gray-200;
|
@apply bg-gradient-to-t from-red-700 to-red-600 hover:from-red-600 hover:to-red-700 border-red-900 text-gray-100 focus:text-gray-200;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ----------------------- BADGES ----------------------- */
|
||||||
|
.badge {
|
||||||
|
@apply px-1 py-0.5 text-xs text-shadow-light font-bold leading-normal rounded
|
||||||
|
}
|
||||||
|
.badge-red {
|
||||||
|
@apply bg-red-400 text-red-900
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -243,31 +243,43 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if standalone and level==1 %}
|
{% if standalone and level==1 %}
|
||||||
<div class="post-info mt-5 mb-1 mr-2">
|
<div class="post-info font-bold mt-5 mb-1">
|
||||||
{% if c.post and c.post.over_18 %}<span class="badge badge-danger text-small-extra mr-1">+18</span>{% endif %}
|
{% if c.post and c.post.over_18 %}
|
||||||
<span class="align-top">
|
<span class="badge badge-red">+18</span>
|
||||||
{% if c.post %}
|
|
||||||
{% if c.author_id==v.id and c.child_comments and is_notification_page%}
|
|
||||||
<span class="font-weight-bold">Comment {{'Replies' if (c.child_comments | length)>1 else 'Reply'}}: <a href="{{c.post.permalink}}">{{c.post.realtitle(v) | safe}}</a></span>
|
|
||||||
{% elif c.post.author_id==v.id and c.level == 1 and is_notification_page%}
|
|
||||||
<span class="font-weight-bold">Post Reply: <a href="{{c.post.permalink}}">{{c.post.realtitle(v) | safe}}</a></span>
|
|
||||||
{% elif is_notification_page and c.parent_submission in v.subscribed_idlist() %}
|
|
||||||
<span class="font-weight-bold">Subscribed Thread: <a href="{{c.post.permalink}}">{{c.post.realtitle(v) | safe}}</a></span>
|
|
||||||
{% elif is_notification_page %}
|
|
||||||
<span class="font-weight-bold">Username Mention: <a href="{{c.post.permalink}}">{{c.post.realtitle(v) | safe}}</a></span>
|
|
||||||
{% else %}
|
|
||||||
<span class="font-weight-bold"><a href="{{c.post.permalink}}">{{c.post.realtitle(v) | safe}}</a></span>
|
|
||||||
{% endif %}
|
|
||||||
{% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %}
|
|
||||||
<span class="font-weight-bold">{{'SITE_NAME' | app_config}} Notification</span>
|
|
||||||
{% else %}
|
|
||||||
{% if c.sentto == 0 %}
|
|
||||||
<span class="font-weight-bold">Sent to admins</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="font-weight-bold">Sent to @{{c.senttouser.username}}</span>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
<div>
|
||||||
|
{% if c.post %}
|
||||||
|
{% if c.author_id==v.id and c.child_comments and is_notification_page%}
|
||||||
|
<span>
|
||||||
|
Comment {{'Replies' if (c.child_comments | length)>1 else 'Reply'}}:
|
||||||
|
<a href="{{c.post.permalink}}" class="text-gray-700 hover:text-gray-900">{{c.post.realtitle(v) | safe}}</a>
|
||||||
|
</span>
|
||||||
|
{% elif c.post.author_id==v.id and c.level == 1 and is_notification_page%}
|
||||||
|
<span>Post Reply:
|
||||||
|
<a href="{{c.post.permalink}}" class="text-gray-700 hover:text-gray-900">{{c.post.realtitle(v) | safe}}</a>
|
||||||
|
</span>
|
||||||
|
{% elif is_notification_page and c.parent_submission in v.subscribed_idlist() %}
|
||||||
|
<span>Subscribed Thread:
|
||||||
|
<a href="{{c.post.permalink}}" class="text-gray-700 hover:text-gray-900">{{c.post.realtitle(v) | safe}}</a></span>
|
||||||
|
{% elif is_notification_page %}
|
||||||
|
<span>Username Mention:
|
||||||
|
<a href="{{c.post.permalink}}" class="text-gray-700 hover:text-gray-900">{{c.post.realtitle(v) | safe}}</a>
|
||||||
|
</span>
|
||||||
|
{% else %}
|
||||||
|
<span>
|
||||||
|
<a href="{{c.post.permalink}}" class="text-gray-700 hover:text-gray-900">{{c.post.realtitle(v) | safe}}</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %}
|
||||||
|
<span>{{'SITE_NAME' | app_config}} Notification</span>
|
||||||
|
{% else %}
|
||||||
|
{% if c.sentto == 0 %}
|
||||||
|
<span>Sent to admins</span>
|
||||||
|
{% else %}
|
||||||
|
<span>Sent to @{{c.senttouser.username}}</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if p.active_flags %}
|
{% if p.active_flags %}
|
||||||
<button class="px-1 py-0.5 text-xs text-red-900 text-shadow-light bg-red-400 font-bold leading-normal rounded" onclick="document.getElementById('flaggers-{{p.id}}').classList.toggle('hidden')">{{p.active_flags}} Reports
|
<button class="badge badge-red" onclick="document.getElementById('flaggers-{{p.id}}').classList.toggle('hidden')">{{p.active_flags}} Reports
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue