aboutsummaryrefslogtreecommitdiffstats
path: root/templates/czech.html
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-11-19 09:31:34 +0100
committerMatěj Cepl <mcepl@redhat.com>2012-11-19 09:39:26 +0100
commit260276512055cbfe816aeacde6a36cd39700afdb (patch)
treee6c206e611147046df537ce07da2c9928280512b /templates/czech.html
parentdb8055b47a6c3db094461dc24659ece70c5371d9 (diff)
downloadhesla-260276512055cbfe816aeacde6a36cd39700afdb.tar.gz
DRY templates (we have now a base template)
Diffstat (limited to 'templates/czech.html')
-rw-r--r--templates/czech.html49
1 files changed, 7 insertions, 42 deletions
diff --git a/templates/czech.html b/templates/czech.html
index 9a96002..d6bae04 100644
--- a/templates/czech.html
+++ b/templates/czech.html
@@ -1,44 +1,9 @@
-{% macro bible_url(ref, mod) %}
- http://www.crosswire.org/study/passagestudy.jsp?key={{ ref.book }}+{{ ref.chapter }}%3A{{ ref.verse }}&amp;mod={{ mod }}
-{%- endmacro %}
-<!DOCTYPE html>
-<html manifest="hesla.appcache">
- <head>
- <meta charset="utf-8"/>
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" name="viewport"/>
- <link href="screen.css" type="text/css" rel="stylesheet"/>
- <title>Hesla Jednoty bratrské pro tento den</title>
- <script src="hesla.js" type="text/javascript" defer="defer">
-</script>
- </head>
- <body>
- <noscript>Omlouvám se, ale tato aplikace opravdu nefunguje bez
- funkčního JavaScriptu.</noscript>
- {% for art in articles %}
- <article id="{{ art.date_id }}">
- <header>
- <h1>{{ art.date_full }}</h1>
- </header>
- {% for wword in art.watchwords %}
- <p>{{ wword.text }}</p>
- <p class="reference"><a href="{{ bible_url(wword.ref_id, 'CzeCEP') }}">{{ wword.ref }}</a></p>
- {% endfor %}
- <ul class="readings">
- {% for read in art.readings %}
- <li>{{ read }}</li>
- {% endfor %}
- </ul>
- </article>
- {% endfor %}
- <footer class="acknowledgment">
- <p>Děkuji za poskytnuté texty <a href="http://hesla.dulos.cz/" target="_blank">Petru
- Heřmanovi</a>.</p>
- <ul class="navigation">
- <li id="czech_nav">Česky</li>
- <li id="german_nav">Deutsch</li>
- </ul>
- </footer>
- </body>
-</html>
+{% extends "base.html" %}
+{% set title = 'Hesla Jednoty bratrské pro tento den' %}
+{% set noscript_message =
+'Omlouvám se, ale tato aplikace opravdu nefunguje bez funkčního JavaScriptu' %}
+{% set bib_mod = 'CzeCEP' %}
+{% block acknowledgment %}Děkuji za poskytnuté texty
+<a href="http://hesla.dulos.cz/" target="_blank">Petru Heřmanovi</a>{% endblock %}
<!-- vi:ft=htmljinja
-->