index.eta 501 B

12345678910111213141516171819
  1. <% layout("/sk/layout", { title: "stanice" }) %>
  2. <%~ include("/sk/panel/partials/navbar") %>
  3. <div>
  4. <h2>vaše stanice</h2>
  5. <% if (it.meteostanice?.length) { %>
  6. <ul>
  7. <% for (const meteostanica of it.meteostanice) { %>
  8. <li><a href="/panel/stations/<%= meteostanica.id %>"><%= meteostanica.name %></a></li>
  9. <% } %>
  10. </ul>
  11. <% } else { %>
  12. <p>žiadne stanice. :(</p>
  13. <% } %>
  14. <a href="/panel/stations/add">pridať</a>
  15. </div>