index.eta 500 B

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