Browse Source

layout: add the full date (today/yesterday)

develop
Arthur POULET 3 months ago
parent
commit
1f44afb893
  1. 4
      public/css/main.css
  2. 2
      src/views/layout.slim

4
public/css/main.css

@ -70,6 +70,10 @@ h2 {
height: 45px;
}
.smaller {
font-size: x-small !important;
}
.highcharts-figure, .highcharts-data-table table {
min-width: 360px;
max-width: 800px;

2
src/views/layout.slim

@ -20,9 +20,11 @@ html lang="en"
- if cookies["date"] == "yesterday"
a.navbar-brand href="/"
| Yesterday
.smaller= get_user_date
- else
a.navbar-brand href="/"
| Today
.smaller= get_user_date
button.navbar-toggler type="button" data-bs-toggle="collapse" data-bs-target="#navbar-collapser" aria-controls="navbar-collapser" aria-expanded="false" aria-label="Toggle navigation"
span.navbar-toggler-icon/
.collapse.navbar-collapse#navbar-collapser

Loading…
Cancel
Save