Skip to content

Commit

Permalink
Remove the big list of flags
Browse files Browse the repository at this point in the history
This change will remove the flag for the big list of all flags in the Wagtail admin and remove the template code for the big list as well.
  • Loading branch information
willbarton committed Oct 17, 2019
1 parent ba62551 commit edcc26a
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions wagtailflags/templates/wagtailflags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,26 @@
{% if flags|length == 0 %}
<p>No flags have been defined.</p>
{% else %}
{% flag_enabled 'WAGTAILFLAGS_ADMIN_BIG_LIST' as big_list_flag %}

{% if big_list_flag %}
<table class="listing">
<thead>
<tr>
<th>Name</th>
<th></th>
</tr>
</thead>
<tbody>
{% for flag in flags %}
<h2>{{ flag.name }}</h2>
{% include "wagtailflags/includes/flag_index.html" with flag=flag %}
<tr>
<td>
<b><a href="{% url 'wagtailflags:flag_index' flag.name %}">{{ flag.name }}</a></b>
</td>
<td>
{{ flag|state_str }}
</td>
</tr>
{% endfor %}
{% else %}
<table class="listing">
<thead>
<tr>
<th>Name</th>
<th></th>
</tr>
</thead>
<tbody>
{% for flag in flags %}
<tr>
<td>
<b><a href="{% url 'wagtailflags:flag_index' flag.name %}">{{ flag.name }}</a></b>
</td>
<td>
{{ flag|state_str }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}

</tbody>
</table>
{% endif %}

</div>
Expand Down

0 comments on commit edcc26a

Please sign in to comment.