Remove more boxes.

This commit is contained in:
Jason McBrayer 2018-05-23 14:20:15 -04:00
parent e9097a950d
commit 722a5c73fd
4 changed files with 77 additions and 87 deletions

View File

@ -3,16 +3,14 @@
{% block title %} Brutaldon - confirm boost {% endblock %}
{% block content %}
{% if toot.reblogged %}
<h1 class="title">Unboost that toot?</h1>
{% else %}
<h1 class="title" >Boost that toot?</h1>
{% endif %}
{% if toot.reblogged %}
<h1 class="title">Unboost that toot?</h1>
{% else %}
<h1 class="title" >Boost that toot?</h1>
{% endif %}
<div class="box">
{% include "main/toot_partial.html" with toot=toot %}
</div>
<form method="POST" action="{% url "boost" toot.id %}">
{% include "main/toot_partial.html" with toot=toot %}
<form method="POST" action="{% url "boost" toot.id %}">
{% csrf_token %}
<div class="level is-mobile">
<div class="level-left">
@ -32,5 +30,5 @@
</div>
</div>
</div>
</form>
</form>
{% endblock %}

View File

@ -3,12 +3,10 @@
{% block title %} Brutaldon - confirm delete {% endblock %}
{% block content %}
<h1 class="title">Delete that toot?</h1>
<h1 class="title">Delete that toot?</h1>
<div class="box">
{% include "main/toot_partial.html" with toot=toot %}
</div>
<form method="POST" action="{% url "delete" toot.id %}">
{% include "main/toot_partial.html" with toot=toot %}
<form method="POST" action="{% url "delete" toot.id %}">
{% csrf_token %}
<div class="level is-mobile">
<div class="level-left">
@ -23,5 +21,5 @@
</div>
</div>
</div>
</form>
</form>
{% endblock %}

View File

@ -3,16 +3,14 @@
{% block title %} Brutaldon - confirm favorite {% endblock %}
{% block content %}
{% if toot.favourited %}
<h1 class="title">Unfav that toot?</h1>
{% else %}
<h1 class="title" >Fav that toot?</h1>
{% endif %}
{% if toot.favourited %}
<h1 class="title">Unfav that toot?</h1>
{% else %}
<h1 class="title" >Fav that toot?</h1>
{% endif %}
<div class="box">
{% include "main/toot_partial.html" with toot=toot %}
</div>
<form method="POST" action="{% url "fav" toot.id %}">
{% include "main/toot_partial.html" with toot=toot %}
<form method="POST" action="{% url "fav" toot.id %}">
{% csrf_token %}
<div class="level is-mobile">
<div class="level-left">
@ -32,5 +30,5 @@
</div>
</div>
</div>
</form>
</form>
{% endblock %}

View File

@ -2,23 +2,19 @@
{% load humanize %}
{% block title %}
Brutaldon - reply
Brutaldon - reply
{% endblock %}
{% block content %}
<h1 class="title">Thread</h1>
{% for ancestor in context.ancestors %}
<div class="box">
{% include "main/toot_partial.html" with toot=ancestor %}
</div>
<hr class="is-hidden">
{% endfor %}
<div class="box active_context">
{% include "main/toot_partial.html" with toot=toot %}
</div>
<hr class="is-hidden">
<div class="box">
<h1 class="title">Thread</h1>
{% for ancestor in context.ancestors %}
{% include "main/toot_partial.html" with toot=ancestor %}
<hr class="is-hidden">
{% endfor %}
{% include "main/toot_partial.html" with toot=toot active=True %}
<hr class="is-hidden">
<div class="box">
{% include "main/post_partial.html" %}
</div>
</div>
{% endblock %}