remove "new think" from the index page
I always use the templates
This commit is contained in:
parent
d474a394f5
commit
2f2df10ac7
2 changed files with 17 additions and 17 deletions
|
@ -249,6 +249,8 @@ input {
|
|||
flex-direction: column;
|
||||
grid-area: preview;
|
||||
|
||||
background: white;
|
||||
|
||||
&[open] {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
|
|
|
@ -32,22 +32,20 @@
|
|||
|
||||
<section id="thinks">
|
||||
<h2>Thinks</h2>
|
||||
<p><a href="{% url 'new_think' %}">New think</a></p>
|
||||
{% regroup thinks by category as categories %}
|
||||
<ul class="thinks-list">
|
||||
{% for category in categories %}
|
||||
<li>
|
||||
<details>
|
||||
<summary>{% if category.grouper %}{{category.grouper}}{% else %}Uncategorised{% endif %}</summary>
|
||||
<ul>
|
||||
{% for think in category.list %}
|
||||
{% include "thinks/think_list_item.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</dl>
|
||||
{% regroup thinks by category as categories %}
|
||||
<ul class="thinks-list">
|
||||
{% for category in categories %}
|
||||
<li>
|
||||
<details>
|
||||
<summary>{% if category.grouper %}{{category.grouper}}{% else %}Uncategorised{% endif %}</summary>
|
||||
<ul>
|
||||
{% for think in category.list %}
|
||||
{% include "thinks/think_list_item.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endblock main %}
|
||||
|
|
Loading…
Reference in a new issue