Tweaks status page

This commit is contained in:
Mouse Reeve 2020-09-29 15:05:50 -07:00
parent 767190e012
commit b762d2c226
3 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{% load humanize %}
{% load fr_display %}
<div class="card{% if depth %} depth-{{ depth }} {% if main %}main{% else %}reply{% endif %}{% endif %}">
<div class="card">
<header class="card-header">
{% include 'snippets/status_header.html' with status=status %}
</header>

View file

@ -1,4 +1,6 @@
{% load fr_display %}
<div class="block">
{% with depth=depth|add:1 %}
{% if depth <= max_depth and status.reply_parent and direction <= 0 %}
{% with direction=-1 %}
@ -16,3 +18,5 @@
{% endfor %}
{% endif %}
{% endwith %}
</div>

View file

@ -1,10 +1,8 @@
{% extends 'layout.html' %}
{% block content %}
<div id="content">
<div class="comment-thread">
{% include 'snippets/thread.html' with status=status depth=0 max_depth=6 is_root=True direction=0 %}
</div>
<div class="block">
{% include 'snippets/thread.html' with status=status depth=0 max_depth=6 is_root=True direction=0 %}
</div>
{% endblock %}