mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{% if not post.is_rm %}
|
||||
{% load closedverse_tags %}<div id="post-{{ post.id }}" {% if post.spoils and not post.is_mine or post.creator.banned %}data-href-hidden{% else %}data-href{% endif %}="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}" class="post post-subtype-default trigger{% if post.spoils and not post.is_mine or post.creator.banned or post.user_is_blocked %} hidden test-hidden{% endif %}{% if type == 2 %} post-list-outline{% endif %}" tabindex="0">
|
||||
{% load closedverse_tags %}<div id="post-{{ post.id }}" {% if post.spoils and not post.is_mine %}data-href-hidden{% else %}data-href{% endif %}="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}" class="post post-subtype-default trigger{% if post.spoils and not post.is_mine or post.user_is_blocked %} hidden test-hidden{% endif %}{% if type == 2 %} post-list-outline{% endif %}" tabindex="0">
|
||||
{% if with_community_container %}
|
||||
<p class="community-container">
|
||||
{% if post.is_reply %}
|
||||
@@ -38,23 +38,15 @@
|
||||
{% else %}<a>File attached</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if post.spoils and not post.is_mine and not post.creator.banned %}
|
||||
{% if post.user_is_blocked %}
|
||||
<div class="hidden-content"><p>Content hidden because you've blocked this user.{% if post.user_is_blocked %} Oh yeah, and spoilers too I guess.{% endif %}</p>
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
</div>
|
||||
{% elif post.spoils and not post.is_mine %}
|
||||
<div class="hidden-content"><p>This post contains spoilers.</p>
|
||||
<button type="button" class="hidden-content-button">View Post</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if post.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ post.creator.username }} was banned. </p>
|
||||
{% if post.creator.active_ban.reason %}
|
||||
<p>Reason: {{post.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
</p></div>
|
||||
{% elif post.user_is_blocked %}
|
||||
<div class="hidden-content"><p>Content hidden because you've blocked this user.</p>
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="post-meta">
|
||||
<button type="button" {% if not post.can_yeah %}disabled{% endif %} class="symbol submit yeah-button
|
||||
{% if post.has_yeah %}empathy-added{% endif %}
|
||||
@@ -67,7 +59,7 @@
|
||||
<div class="reply symbol"><span class="symbol-label">Comments</span><span class="reply-count">{{ post.number_comments }}</span></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if post.recent_comment and not post.recent_comment.creator.banned %}
|
||||
{% if post.recent_comment %}
|
||||
<div class="recent-reply-content">
|
||||
{% if post.number_comments > 1 %}
|
||||
<div class="recent-reply-read-more-container" tabindex="0">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% if not comment.is_rm %}{% load closedverse_tags %}<li id="comment-{{ comment.id }}" {% if comment.spoils and not comment.is_mine or comment.creator.banned %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:comment-view" comment.id %}" class="post {% if comment.owner_post %}my{% else %}other{% endif %}{% if comment.spoils and not comment.is_mine or comment.creator.banned %} hidden{% endif %} trigger">
|
||||
{% if not comment.is_rm %}{% load closedverse_tags %}<li id="comment-{{ comment.id }}" {% if comment.spoils and not comment.is_mine %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:comment-view" comment.id %}" class="post {% if comment.owner_post %}my{% else %}other{% endif %}{% if comment.spoils and not comment.is_mine %} hidden{% endif %} trigger">
|
||||
{% user_icon_container comment.creator comment.feeling %}
|
||||
<div class="body">
|
||||
<div class="header">
|
||||
@@ -20,19 +20,11 @@
|
||||
{% else %}<a>File attached</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if comment.spoils and not comment.is_mine and not comment.creator.banned %}
|
||||
{% if comment.spoils and not comment.is_mine %}
|
||||
<div class="hidden-content"><p>This comment contains spoilers.</p>
|
||||
<button type="button" class="hidden-content-button">View Comment</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if comment.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ comment.creator.username }} was banned. </p>
|
||||
{% if comment.creator.active_ban.reason %}
|
||||
<p>Reason: {{comment.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
</p></div>
|
||||
{% endif %}
|
||||
|
||||
<div class="reply-meta">
|
||||
<button type="button" {% if not comment.can_yeah %}disabled{% endif %} class="symbol submit yeah-button
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% load closedverse_tags %}<div {% if post.spoils and not post.is_mine or post.creator.banned %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:post-view" post.id %}" class="post trigger{% if post.file_type == 1 and not for_announcements %} with-image{% endif %}{% if post.spoils and not post.is_mine or post.creator.banned %} hidden test-hidden{% endif %}" tabindex="0">
|
||||
{% load closedverse_tags %}<div {% if post.spoils and not post.is_mine %}data-href-hidden{% else %}data-href{% endif %}="{% url "main:post-view" post.id %}" class="post trigger{% if post.file_type == 1 and not for_announcements %} with-image{% endif %}{% if post.spoils and not post.is_mine %} hidden test-hidden{% endif %}" tabindex="0">
|
||||
|
||||
<p class="community-container"><a {% if post.community.clickable %}href="{% url "main:community-view" post.community_id %}"{% endif %}><img src="{{ post.community.icon }}" class="community-icon">{{ post.community.name }}</a></p>
|
||||
|
||||
@@ -33,17 +33,9 @@
|
||||
{% else %}
|
||||
<p class="post-content-text">{{ post.body|truncatechars:100|linebreaksbr }}</p>
|
||||
{% endif %}
|
||||
{% if post.spoils and not post.is_mine and not post.creator.banned %}
|
||||
{% if post.spoils and not post.is_mine %}
|
||||
<div class="hidden-content"><p>This post contains spoilers.
|
||||
<button type="button" class="hidden-content-button">View Post</button>
|
||||
</p></div>
|
||||
{% endif %}
|
||||
{% if post.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ post.creator.username }} was banned. </p>
|
||||
{% if post.creator.active_ban.reason %}
|
||||
<p>Reason: {{post.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
</p></div>
|
||||
{% endif %}
|
||||
{% if not for_announcements %}
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
<p class="settings-label">Ban this user for:</p>
|
||||
{{ form.expiry_date }}
|
||||
<p class='note'>{{ user.username }} will be banned from {{ brand_name }} until the time runs out.</p>
|
||||
<p class="settings-label">Purge this user?</p>
|
||||
{{ form.purge }}
|
||||
<p class='note'>Should we purge {{ user.username }}? All comments and posts will be removed.</p>
|
||||
</li>
|
||||
{% csrf_token %}
|
||||
<div class="form-buttons">
|
||||
|
||||
Reference in New Issue
Block a user