Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606828702-practice
Commits
ee553e18
Commit
ee553e18
authored
Oct 02, 2019
by
Rahmania Astrid Mochtar
Browse files
handle if empty list
parent
328a952f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lists/templates/home.html
View file @
ee553e18
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment