index.eta 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <% layout("/en/panel/stations/history/layout", { title: it.meteostanica.name }) %>
  2. <%~ include("/en/panel/partials/navbar") %>
  3. <% const historyIcon = `
  4. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  5. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  6. <path d="M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" />
  7. <path d="M3 3v5h5m4-1v5l4 2" />
  8. </g>
  9. </svg>
  10. ` %>
  11. <%~ include("/en/panel/stations/partials/details", { meteostanica: it.meteostanica }) %>
  12. <h2><%~ historyIcon %> history</h2>
  13. <h3>indoor</h3>
  14. <div class="container-row">
  15. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/indoorTemp"><%~ it?.lang?.stations?.history.properties?.indoorTemp() %></a>
  16. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/indoorPressure"><%~ it?.lang?.stations?.history.properties?.indoorPressure() %></a>
  17. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/indoorHumidity"><%~ it?.lang?.stations?.history.properties?.indoorHumidity() %></a>
  18. </div>
  19. <h3>outdoor</h3>
  20. <div class="container-row">
  21. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/outdoorConnected"><%~ it?.lang?.stations?.history.properties?.outdoorConnected() %></a>
  22. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/outdoorTemp"><%~ it?.lang?.stations?.history.properties?.outdoorTemp() %></a>
  23. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/outdoorPressure"><%~ it?.lang?.stations?.history.properties?.outdoorPressure() %></a>
  24. <a role="button" href="/en/panel/stations/<%= it.meteostanica.id %>/history/outdoorHumidity"><%~ it?.lang?.stations?.history.properties?.outdoorHumidity() %></a>
  25. </div>