remotes/1693045480750635534/spooky-22
kek7198 2021-12-01 15:32:27 -06:00
parent aa170c88fb
commit f9ccaa8040
3 changed files with 48 additions and 26 deletions

View File

@ -100,4 +100,14 @@
}
.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;
}
}
/* ----------------------- 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
}

View File

@ -243,31 +243,43 @@
{% endif %}
{% if standalone and level==1 %}
<div class="post-info mt-5 mb-1 mr-2">
{% if c.post and c.post.over_18 %}<span class="badge badge-danger text-small-extra mr-1">+18</span>{% endif %}
<span class="align-top">
{% 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 %}
<div class="post-info font-bold mt-5 mb-1">
{% if c.post and c.post.over_18 %}
<span class="badge badge-red">+18</span>
{% 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>
{% endif %}

View File

@ -156,7 +156,7 @@
</span>
{% endif %}
{% 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>
{% endif %}