Fakultas Ilmu Komputer UI

Commit ee553e18 authored by Rahmania Astrid Mochtar's avatar Rahmania Astrid Mochtar
Browse files

handle if empty list

parent 328a952f
......@@ -15,9 +15,11 @@
</form>
<table id="id_list_table">
{% if items %}
{% for item in items %}
<tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
{% endfor %}
{% endif %}
</table>
{% if items|length == 0 %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment