Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions spirit/comment/templates/spirit/comment/_render_list.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% load spirit_tags i18n %}

<div class="comments">

{# load_settings "ST_CUSTOMIZE_HIDE_ACTIONS" "ST_..." etc... #}
{% load_settings "ST_CUSTOMIZE_HIDE_ACTIONS" %}
{% for c in comments %}

{# moderator can view anything or; SHOW_ACTIONS shows anything or; show if is_comment_is_not_action. #}
{% if user.st.is_moderator or not st_settings.ST_CUSTOMIZE_HIDE_ACTIONS or c.action == 0 %}
<div class="comment{% if c.action %} is-highlighted{% endif %}" id="c{{forloop.counter0|add:comments.start_index }}" data-number="{{ forloop.counter0|add:comments.start_index }}" data-pk="{{ c.pk }}">

{% if not c.is_removed %}
Expand Down Expand Up @@ -122,7 +124,7 @@
{% endif %}

</div>

{% endif %}
{% endfor %}

</div>
Expand Down
2 changes: 2 additions & 0 deletions spirit/core/conf/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@
os.path.dirname(
os.path.dirname(
os.path.dirname(__file__))))

ST_CUSTOMIZE_HIDE_ACTIONS = True