remove "new think" from the index page

I always use the templates
This commit is contained in:
Christian Lawson-Perfect 2025-02-10 11:33:34 +00:00
parent d474a394f5
commit 2f2df10ac7
2 changed files with 17 additions and 17 deletions

View file

@ -249,6 +249,8 @@ input {
flex-direction: column; flex-direction: column;
grid-area: preview; grid-area: preview;
background: white;
&[open] { &[open] {
flex-grow: 1; flex-grow: 1;
flex-shrink: 1; flex-shrink: 1;

View file

@ -32,22 +32,20 @@
<section id="thinks"> <section id="thinks">
<h2>Thinks</h2> <h2>Thinks</h2>
<p><a href="{% url 'new_think' %}">New think</a></p> {% regroup thinks by category as categories %}
{% regroup thinks by category as categories %} <ul class="thinks-list">
<ul class="thinks-list"> {% for category in categories %}
{% for category in categories %} <li>
<li> <details>
<details> <summary>{% if category.grouper %}{{category.grouper}}{% else %}Uncategorised{% endif %}</summary>
<summary>{% if category.grouper %}{{category.grouper}}{% else %}Uncategorised{% endif %}</summary> <ul>
<ul> {% for think in category.list %}
{% for think in category.list %} {% include "thinks/think_list_item.html" %}
{% include "thinks/think_list_item.html" %} {% endfor %}
{% endfor %} </ul>
</ul> </details>
</details> </li>
</li> {% endfor %}
{% endfor %} </ul>
</ul>
</dl>
</section> </section>
{% endblock main %} {% endblock main %}