list.html 735 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="refresh" content="10">
  7. <title>Today's to-do List</title>
  8. <style>
  9. body {
  10. background-color: transparent;
  11. color: #CBD2D9;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. {% if items %}
  17. <h2>Today's to-do List</h2>
  18. <ul>
  19. {% for item in items %}
  20. <li style="text-decoration: {{ 'line-through' if item.crossed == 'yes' else 'none' }}; font-weight: bold; font-size: 18px;">
  21. {{ item.name }}
  22. </li>
  23. {% endfor %}
  24. </ul>
  25. {% endif %}
  26. </body>
  27. </html>