summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhillip Berndt <pberndt@spline.de>2013-09-11 11:07:10 +0200
committerPhillip Berndt <pberndt@spline.de>2015-05-20 09:33:12 +0200
commit7cbd460ce27c6d4dd9dfca59d3c1659374607ead (patch)
tree658c4e975a39e5664df0a3796c9daff0ad41c4fe /templates
parentf81d0c78fe5d17c852c09c0c2e63bf6544e74479 (diff)
downloadcomics-7cbd460ce27c6d4dd9dfca59d3c1659374607ead.tar.gz
comics-7cbd460ce27c6d4dd9dfca59d3c1659374607ead.tar.bz2
comics-7cbd460ce27c6d4dd9dfca59d3c1659374607ead.zip
Added javascript strip sorting and hiding capability
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html29
1 files changed, 17 insertions, 12 deletions
diff --git a/templates/base.html b/templates/base.html
index 62319be..8a2e338 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -36,18 +36,20 @@
<h1>{{date.day}}.{{date.month}}.{{date.year}}</h1>
{%- for entry in entries %}
- <h2>
- {{ entry.comic.name }}
- </h2>
- <span class="source">
- <a target="_blank" href="{{entry.comic.url}}">Originalseite</a>
- </span><br />
- <img src="{{ entry.path }}" alt="{{ entry.comic.name }} Comic vom {{date.day}}.{{date.month}}.{{date.year}}" {% if entry.alt -%} title="{{entry.alt|safe}}" {%- endif -%}>
+ <div class="strip" data-strip-name="{{ entry.comic.name }}">
+ <h2>
+ {{ entry.comic.name }}
+ </h2>
+ <span class="source">
+ <a target="_blank" href="{{entry.comic.url}}">Originalseite</a>
+ </span><br />
+ <img src="{{ entry.path }}" alt="{{ entry.comic.name }} Comic vom {{date.day}}.{{date.month}}.{{date.year}}" {% if entry.alt -%} title="{{entry.alt|safe}}" {%- endif -%}>
- {%- if entry.title %}
- <br />
- <span class="title"> {{ entry.title }} </span>
- {% endif %}
+ {%- if entry.title %}
+ <br />
+ <span class="title"> {{ entry.title }} </span>
+ {% endif %}
+ </div>
{% endfor -%}
{%- if next or prev %}
@@ -58,7 +60,7 @@
</a>
{% endif -%}
- {%- if next %}
+ {%- if next %}
<a class="next" href="{{ next.strftime("/sites/%Y/%m/%d.html") }}">
sp&auml;ter &rarr;
</a>
@@ -70,6 +72,9 @@
</div>
{% endif %}
</div>
+
+ <script type="text/javascript" src="/page.min.js">
+ </script>
</body>
</html>