diff options
Diffstat (limited to 'templates/web/index.html')
-rw-r--r-- | templates/web/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/web/index.html b/templates/web/index.html index 9683ddb..425e310 100644 --- a/templates/web/index.html +++ b/templates/web/index.html @@ -2,24 +2,24 @@ {% block content %} <section> - {% if q %}<h2>Cerca: '{{ q }}'</h2>{% endif %} - <dl id="linkslist"> - {% for entry in entries %} + {% if q %}<h2>Risultati ricerca:</h2>{% endif %} + {% for entry in entries %} + <dl id="linkcard"> <dt class="link" id="{{ entry.eid }}"> <a href="{{ entry.data.url }}" title="{{ entry.data.url }}">{{ entry.data.title }}</a> </dt> <dd> {{ entry.data.description }} <footer> - {% if entry.data.updated and entry.data.updated != entry.data.added %} + {% if entry.data.updated and entry.data.updated|datetime > entry.data.added|datetime %} <span title="Aggiornato - Aggiunto il {{ entry.data.added }}"> <svg class="svg-icon" viewBox="0 0 20 20"><path d="M5.5 3.2c-.2 0-.4.2-.4.4v.9H3.4c-.9 0-1.6.7-1.6 1.6v9c0 1 .7 1.7 1.6 1.7h13.2c.9 0 1.6-.8 1.6-1.7v-9c0-.9-.7-1.6-1.6-1.6h-1.7v-.9c0-.2-.2-.4-.4-.4s-.4.2-.4.4v.9H5.9v-.9c0-.2-.2-.4-.4-.4zm-2 2H5v1.3c0 .2.2.4.4.4s.4-.2.4-.4V5.3h8.2v1.2c0 .2.2.4.4.4s.4-.2.4-.4V5.3h1.7c.4 0 .8.4.8.8v2H2.6v-2c0-.4.4-.8.8-.8zM2.5 9h14.8v2.6h-2.9c-1 0-1.6.7-1.6 1.6v2.7H3.4a.8.8 0 01-.8-.8V9zm11.9 3.4h2.9V15c0 .5-.4.8-.8.8h-3v-2.7c0-.5.4-.8.9-.8z"/></svg> - {{ entry.data.updated }} + {{ entry.data.updated|datetime }} </span> {% else %} <span title="Aggiunto"> <svg class="svg-icon" viewBox="0 0 20 20"><path d="M16.557,4.467h-1.64v-0.82c0-0.225-0.183-0.41-0.409-0.41c-0.226,0-0.41,0.185-0.41,0.41v0.82H5.901v-0.82c0-0.225-0.185-0.41-0.41-0.41c-0.226,0-0.41,0.185-0.41,0.41v0.82H3.442c-0.904,0-1.64,0.735-1.64,1.639v9.017c0,0.904,0.736,1.64,1.64,1.64h13.114c0.904,0,1.64-0.735,1.64-1.64V6.106C18.196,5.203,17.461,4.467,16.557,4.467 M17.377,15.123c0,0.453-0.366,0.819-0.82,0.819H3.442c-0.453,0-0.82-0.366-0.82-0.819V8.976h14.754V15.123z M17.377,8.156H2.623V6.106c0-0.453,0.367-0.82,0.82-0.82h1.639v1.23c0,0.225,0.184,0.41,0.41,0.41c0.225,0,0.41-0.185,0.41-0.41v-1.23h8.196v1.23c0,0.225,0.185,0.41,0.41,0.41c0.227,0,0.409-0.185,0.409-0.41v-1.23h1.64c0.454,0,0.82,0.367,0.82,0.82V8.156z"></path></svg> - {{ entry.data.added }} + {{ entry.data.added|datetime }} </span> {% endif %} @@ -34,8 +34,8 @@ {% endif %} </footer> </dd> - {% endfor %} </dl> + {% endfor %} {% if entries|count > 0 %} {% if q %} <a id="nextpage" href="{{ url_for('search', q=q, p=page+1) }}">altro</a> |