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,34 +3,32 @@
{% block title %} Brutaldon - confirm boost {% endblock %} {% block title %} Brutaldon - confirm boost {% endblock %}
{% block content %} {% block content %}
{% if toot.reblogged %} {% if toot.reblogged %}
<h1 class="title">Unboost that toot?</h1> <h1 class="title">Unboost that toot?</h1>
{% else %} {% else %}
<h1 class="title" >Boost that toot?</h1> <h1 class="title" >Boost that toot?</h1>
{% endif %} {% endif %}
<div class="box"> {% include "main/toot_partial.html" with toot=toot %}
{% include "main/toot_partial.html" with toot=toot %} <form method="POST" action="{% url "boost" toot.id %}">
</div> {% csrf_token %}
<form method="POST" action="{% url "boost" toot.id %}"> <div class="level is-mobile">
{% csrf_token %} <div class="level-left">
<div class="level is-mobile"> <div class="level-item">
<div class="level-left"> <input class="button" type="submit" name="cancel" value="Cancel">
<div class="level-item">
<input class="button" type="submit" name="cancel" value="Cancel">
</div>
</div>
<div class="level-right">
<div class="level-item">
{% if toot.reblogged %}
<input class="button is-primary" type="submit" name="boost"
value="Unboost">
{% else %}
<input class="button is-primary" type="submit" name="boost"
value="Boost">
{% endif %}
</div>
</div> </div>
</div> </div>
</form> <div class="level-right">
<div class="level-item">
{% if toot.reblogged %}
<input class="button is-primary" type="submit" name="boost"
value="Unboost">
{% else %}
<input class="button is-primary" type="submit" name="boost"
value="Boost">
{% endif %}
</div>
</div>
</div>
</form>
{% endblock %} {% endblock %}

View File

@ -3,25 +3,23 @@
{% block title %} Brutaldon - confirm delete {% endblock %} {% block title %} Brutaldon - confirm delete {% endblock %}
{% block content %} {% 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 %}
{% include "main/toot_partial.html" with toot=toot %} <form method="POST" action="{% url "delete" toot.id %}">
</div> {% csrf_token %}
<form method="POST" action="{% url "delete" toot.id %}"> <div class="level is-mobile">
{% csrf_token %} <div class="level-left">
<div class="level is-mobile"> <div class="level-item">
<div class="level-left"> <input class="button" type="submit" name="cancel" value="Cancel">
<div class="level-item">
<input class="button" type="submit" name="cancel" value="Cancel">
</div>
</div>
<div class="level-right">
<div class="level-item">
<input class="button is-primary" type="submit" name="delete"
value="Delete">
</div>
</div> </div>
</div> </div>
</form> <div class="level-right">
<div class="level-item">
<input class="button is-primary" type="submit" name="delete"
value="Delete">
</div>
</div>
</div>
</form>
{% endblock %} {% endblock %}

View File

@ -3,34 +3,32 @@
{% block title %} Brutaldon - confirm favorite {% endblock %} {% block title %} Brutaldon - confirm favorite {% endblock %}
{% block content %} {% block content %}
{% if toot.favourited %} {% if toot.favourited %}
<h1 class="title">Unfav that toot?</h1> <h1 class="title">Unfav that toot?</h1>
{% else %} {% else %}
<h1 class="title" >Fav that toot?</h1> <h1 class="title" >Fav that toot?</h1>
{% endif %} {% endif %}
<div class="box"> {% include "main/toot_partial.html" with toot=toot %}
{% include "main/toot_partial.html" with toot=toot %} <form method="POST" action="{% url "fav" toot.id %}">
</div> {% csrf_token %}
<form method="POST" action="{% url "fav" toot.id %}"> <div class="level is-mobile">
{% csrf_token %} <div class="level-left">
<div class="level is-mobile"> <div class="level-item">
<div class="level-left"> <input class="button" type="submit" name="cancel" value="Cancel">
<div class="level-item">
<input class="button" type="submit" name="cancel" value="Cancel">
</div>
</div>
<div class="level-right">
<div class="level-item">
{% if toot.favorited %}
<input class="button is-primary" type="submit" name="fav"
value="Unfavorite">
{% else %}
<input class="button is-primary" type="submit" name="fav"
value="Favorite">
{% endif %}
</div>
</div> </div>
</div> </div>
</form> <div class="level-right">
<div class="level-item">
{% if toot.favorited %}
<input class="button is-primary" type="submit" name="fav"
value="Unfavorite">
{% else %}
<input class="button is-primary" type="submit" name="fav"
value="Favorite">
{% endif %}
</div>
</div>
</div>
</form>
{% endblock %} {% endblock %}

View File

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