Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Changing the template, prettifying a bit
Browse files Browse the repository at this point in the history
Now that everything is a <li> can set the margin-top value to make a gap, instead of making a visible "invisible" hr. And with the template thread.html fixed, it seems to be working, showing everything as a tree, instead of a flat list.
  • Loading branch information
Cy committed Jun 1, 2020
1 parent 91c3b82 commit a6346a4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
7 changes: 7 additions & 0 deletions brutaldon/static/css/brutaldon-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,10 @@ div.poll {
{
margin-top: 0;
}

li {
margin-top: 0.1vh;
}
ul {
padding-left: 2vw;
}
22 changes: 14 additions & 8 deletions brutaldon/templates/main/thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@
<h1 id="title" class="title">
Thread
</h1>
{% include "main/toot_partial.html" with toot=root %}
{% for descendant in descendants %}
{% if descendant == toot %}
{% include "main/toot_partial.html" with toot=toot active=True %}
{% else %}
{% include "main/toot_partial.html" with toot=descendant %}
{% endif %}
<hr class="is-hidden">
{% for op in toots %}
{% if op == IN %}
<ul>
{% elif op == OUT %}
</ul>
{% else %}
<li>
{% if op.toot == toot %}
{% include "main/toot_partial.html" with toot=op.toot active=True %}
{% else %}
{% include "main/toot_partial.html" with toot=op.toot %}
{% endif %}
</li>
{% endif %}
{% endfor %}

{% if not preferences.no_javascript %}
Expand Down

0 comments on commit a6346a4

Please sign in to comment.