aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2020-10-16 11:44:26 +0200
committerfabrixxm <fabrix.xm@gmail.com>2020-10-16 11:44:26 +0200
commit7ffc817ccc6dadd67d15a289f6edd97d7f5d4cbb (patch)
treea36cba50b6591e5362453bffbff9b8ae8eb62538 /templates
parent0ff736347b3627ae43c051ae0a9dff6d8e5a6263 (diff)
Aggiorna template web
- link ai repository - qualche iconcina, che ci sta
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base.html29
-rw-r--r--templates/web/entry.html23
-rw-r--r--templates/web/index.html26
3 files changed, 68 insertions, 10 deletions
diff --git a/templates/web/base.html b/templates/web/base.html
index bbb6d93..49635b8 100644
--- a/templates/web/base.html
+++ b/templates/web/base.html
@@ -80,6 +80,27 @@
text-align: center;
}
+ /* -----
+ SVG Icons - svgicons.sparkk.fr
+ ----- */
+
+ .svg-icon {
+ width: 1em;
+ height: 1em;
+ vertical-align:middle;
+ }
+
+ .svg-icon path,
+ .svg-icon polygon,
+ .svg-icon rect {
+ fill: #828282;
+ }
+
+ .svg-icon circle {
+ stroke: #828282;
+ stroke-width: 1;
+ }
+
</style>
{% block extrahead %}{% endblock %}
@@ -93,5 +114,13 @@
<footer>
<form method="get" action="{{ url_for('search') }}"><input name="q" placeholder="cerca..."></form>
</footer>
+ <footer>
+ <small>
+ <svg xmlns="http://www.w3.org/2000/svg" class="svg-icon" viewBox="0 0 194 194"><path d="M3.7 88.4L88.4 3.7c4.9-4.9 12.8-4.9 17.7 0l17.6 17.6-22.3 22.3c-5.3-1.8-11.2-.6-15.4 3.5-4.2 4.2-5.3 10.2-3.5 15.4L61 84c-5.2-1.8-11.2-.6-15.4 3.5-5.8 5.8-5.8 15.2 0 21 5.8 5.8 15.2 5.8 21 0 4.4-4.4 5.4-10.8 3.2-16.2l20.2-20v52.8c-1.4.7-2.8 1.6-3.9 2.8-5.8 5.8-5.8 15.2 0 21 5.8 5.8 15.2 5.8 21 0 5.8-5.8 5.8-15.2 0-21-1.4-1.4-3.1-2.5-4.9-3.2V71.4c1.8-.7 3.4-1.8 4.9-3.2 4.4-4.4 5.5-10.9 3.2-16.3l22-22 58 58.1c4.9 4.9 4.9 12.8 0 17.7l-84.7 84.7c-4.9 4.9-12.8 4.9-17.7 0L3.7 106c-4.9-4.8-4.9-12.8 0-17.6" fill="#f03c2e"/></svg>
+ <a href="http://git.trueelena.org/cgit.cgi/bookmarks/gl-como/about/">collection</a>
+ - <a href="https://lesana.trueelena.org/">lesana</a>
+ - <a href="https://git.sr.ht/~fabrixxm/lesanaweb">lesanaweb</a>
+ </small>
+ </footer>
</body>
</html>
diff --git a/templates/web/entry.html b/templates/web/entry.html
index 9fea0af..4647f05 100644
--- a/templates/web/entry.html
+++ b/templates/web/entry.html
@@ -10,11 +10,24 @@
</header>
<p>{{ entry.data.description }}</p>
<footer>
- {{ entry.data.added }}
- {{ "- tags: " if entry.data.tags|count > 0 }}
- {% for tag in entry.data.tags %}
- <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
- {% endfor %}
+ <div 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 }}
+ </div>
+ {% if entry.data.updated and entry.data.updated > entry.data.added %}
+ <div title="Aggiornato">
+ <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 }}
+ </div>
+ {% endif %}
+ {% if entry.data.tags|count > 0 %}
+ <div title="Tags" style="margin-top: 0.2em">
+ <svg class="svg-icon" viewBox="0 0 20 20"><path d="M17.35,2.219h-5.934c-0.115,0-0.225,0.045-0.307,0.128l-8.762,8.762c-0.171,0.168-0.171,0.443,0,0.611l5.933,5.934c0.167,0.171,0.443,0.169,0.612,0l8.762-8.763c0.083-0.083,0.128-0.192,0.128-0.307V2.651C17.781,2.414,17.587,2.219,17.35,2.219M16.916,8.405l-8.332,8.332l-5.321-5.321l8.333-8.332h5.32V8.405z M13.891,4.367c-0.957,0-1.729,0.772-1.729,1.729c0,0.957,0.771,1.729,1.729,1.729s1.729-0.772,1.729-1.729C15.619,5.14,14.848,4.367,13.891,4.367 M14.502,6.708c-0.326,0.326-0.896,0.326-1.223,0c-0.338-0.342-0.338-0.882,0-1.224c0.342-0.337,0.881-0.337,1.223,0C14.84,5.826,14.84,6.366,14.502,6.708"></path></svg>
+ {% for tag in entry.data.tags %}
+ <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
+ {% endfor %}
+ </div>
+ {% endif %}
</footer>
</article>
{% endblock %}
diff --git a/templates/web/index.html b/templates/web/index.html
index 3301763..1a0e488 100644
--- a/templates/web/index.html
+++ b/templates/web/index.html
@@ -13,11 +13,27 @@
<dd>
{{ entry.data.description }}
<footer>
- {{ entry.data.added }} - <a href="{{ url_for('entry', eid=entry.eid) }}">permalink</a>
- {{ "-" if entry.data.tags|count > 0 }}
- {% for tag in entry.data.tags %}
- <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
- {% endfor %}
+ {% if entry.data.updated and entry.data.updated != entry.data.added %}
+ <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 }}
+ </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 }}
+ </span>
+ {% endif %}
+
+ <svg class="svg-icon" viewBox="0 0 20 20"><path d="M16.469,8.924l-2.414,2.413c-0.156,0.156-0.408,0.156-0.564,0c-0.156-0.155-0.156-0.408,0-0.563l2.414-2.414c1.175-1.175,1.175-3.087,0-4.262c-0.57-0.569-1.326-0.883-2.132-0.883s-1.562,0.313-2.132,0.883L9.227,6.511c-1.175,1.175-1.175,3.087,0,4.263c0.288,0.288,0.624,0.511,0.997,0.662c0.204,0.083,0.303,0.315,0.22,0.52c-0.171,0.422-0.643,0.17-0.52,0.22c-0.473-0.191-0.898-0.474-1.262-0.838c-1.487-1.485-1.487-3.904,0-5.391l2.414-2.413c0.72-0.72,1.678-1.117,2.696-1.117s1.976,0.396,2.696,1.117C17.955,5.02,17.955,7.438,16.469,8.924 M10.076,7.825c-0.205-0.083-0.437,0.016-0.52,0.22c-0.083,0.205,0.016,0.437,0.22,0.52c0.374,0.151,0.709,0.374,0.997,0.662c1.176,1.176,1.176,3.088,0,4.263l-2.414,2.413c-0.569,0.569-1.326,0.883-2.131,0.883s-1.562-0.313-2.132-0.883c-1.175-1.175-1.175-3.087,0-4.262L6.51,9.227c0.156-0.155,0.156-0.408,0-0.564c-0.156-0.156-0.408-0.156-0.564,0l-2.414,2.414c-1.487,1.485-1.487,3.904,0,5.391c0.72,0.72,1.678,1.116,2.696,1.116s1.976-0.396,2.696-1.116l2.414-2.413c1.487-1.486,1.487-3.905,0-5.392C10.974,8.298,10.55,8.017,10.076,7.825"></path></svg>
+ <a href="{{ url_for('entry', eid=entry.eid) }}">permalink</a>
+
+ {% if entry.data.tags|count > 0 %}
+ <svg class="svg-icon" viewBox="0 0 20 20"><path d="M17.35,2.219h-5.934c-0.115,0-0.225,0.045-0.307,0.128l-8.762,8.762c-0.171,0.168-0.171,0.443,0,0.611l5.933,5.934c0.167,0.171,0.443,0.169,0.612,0l8.762-8.763c0.083-0.083,0.128-0.192,0.128-0.307V2.651C17.781,2.414,17.587,2.219,17.35,2.219M16.916,8.405l-8.332,8.332l-5.321-5.321l8.333-8.332h5.32V8.405z M13.891,4.367c-0.957,0-1.729,0.772-1.729,1.729c0,0.957,0.771,1.729,1.729,1.729s1.729-0.772,1.729-1.729C15.619,5.14,14.848,4.367,13.891,4.367 M14.502,6.708c-0.326,0.326-0.896,0.326-1.223,0c-0.338-0.342-0.338-0.882,0-1.224c0.342-0.337,0.881-0.337,1.223,0C14.84,5.826,14.84,6.366,14.502,6.708"></path></svg>
+ {% for tag in entry.data.tags %}
+ <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
+ {% endfor %}
+ {% endif %}
</footer>
</dd>
{% endfor %}