Bladeren bron

Added verbage for when there are no items on the list

deadtom 4 weken geleden
bovenliggende
commit
f4c19283fd
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      todolist/templates/list.html

+ 3 - 1
todolist/templates/list.html

@@ -14,7 +14,7 @@
 </head>
 <body>
     {% if items %}
-        <h2>Today's to-do List</h2>
+        <h4>Today's to-do List</h4>
         <ul>
             {% for item in items %}
                 <li style="text-decoration: {{ 'line-through' if item.crossed == 'yes' else 'none' }}; font-weight: bold; font-size: 18px;">
@@ -22,6 +22,8 @@
                 </li>
             {% endfor %}
         </ul>
+    {% else %}
+    	<h4>Nothing on the to-list yet</h4>
     {% endif %}
 </body>
 </html>