|
|
@ -1,10 +1,39 @@ |
|
|
|
{% extends "galerie/Base.html" %} |
|
|
|
|
|
|
|
|
|
|
|
{% block nadpis1a %} |
|
|
|
{{galerie.nazev}}: {{ obrazek.popis | default:"Fotka" }} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block script %} |
|
|
|
{% with obrazky_predchozi|last as predchozi_obrazek %} |
|
|
|
{% with obrazky_dalsi|first as dalsi_obrazek %} |
|
|
|
<script type="text/javascript"> |
|
|
|
$(document).keydown(function(e) { |
|
|
|
{% if predchozi_obrazek %} |
|
|
|
// doleva |
|
|
|
if (e.which == 37) { |
|
|
|
window.location.assign("../{{ predchozi_obrazek.pk }}#nahoru"); |
|
|
|
} |
|
|
|
{% endif %} |
|
|
|
{% if dalsi_obrazek %} |
|
|
|
// doprava |
|
|
|
if (e.which == 39) { |
|
|
|
window.location.assign("../{{ dalsi_obrazek.pk }}#nahoru"); |
|
|
|
} |
|
|
|
{% endif %} |
|
|
|
if (e.which == 27) { |
|
|
|
window.location.assign("../#obsah") |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|
{% endwith %} |
|
|
|
{% endwith %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block content %} |
|
|
|
|
|
|
|
|
|
|
|
<h2> |
|
|
|
{% for g in cesta %} |
|
|
|
<a href="../../{{ g.pk }}">{{ g.nazev }}</a> > |
|
|
|