diff --git a/galerie/templates/galerie/Galerie.html b/galerie/templates/galerie/Galerie.html index 7ece4ae4..35779fc3 100644 --- a/galerie/templates/galerie/Galerie.html +++ b/galerie/templates/galerie/Galerie.html @@ -5,27 +5,36 @@ {{galerie.nazev}}: {{ obrazek.popis | default:"Fotka" }} {% endblock %} + +{# přecházení mezi fotkami pomocí šipek #} {% block script %} {% with obrazky_predchozi|last as predchozi_obrazek %} {% with obrazky_dalsi|first as dalsi_obrazek %} {% endwith %} {% endwith %} @@ -36,16 +45,11 @@

{% for g in cesta %} - {{ g.nazev }} > + {{ g.nazev }}{% if not forloop.last %} >{% endif %} {% endfor %} - {{ obrazek.nazev }}

- - - - {# TODO šipky na přecházeni dodelat ve stylech #}
{% if obrazky_predchozi %} {% with obrazky_predchozi|last as predchozi_obrazek %} @@ -92,30 +96,36 @@
{# odkaz na predchozi galerii #} - {% if predchozi_galerie %} - Predchozi: - {{predchozi_galerie}} - - {% endif %} - {# nahledy predchozich obrazku #} - {% for obrazek in obrazky_predchozi %} - - {% endfor %} - {# nahled aktualniho obrazku -- TODO po kliknuti vypsat: Prohrál jsi #} + + {{obrazek.popis}} - {# nahledy nasledujicich obrazku #} - {% for obrazek in obrazky_dalsi %} - - {% endfor %} - {# odkaz na nasledujici galerii #} - {% if nasledujici_galerie %} - Nasledujici: - {{nasledujici_galerie}} - - {% endif %} + height="{{obrazek.obrazek_maly.height}}" + width="{{obrazek.obrazek_maly.width}}" + alt="{{obrazek.popis}}" + class="obrazek" + id="prostredni"> + +
{% endblock %} diff --git a/galerie/templates/galerie/GalerieNahled.html b/galerie/templates/galerie/GalerieNahled.html index ffdcf9d3..f7026a11 100644 --- a/galerie/templates/galerie/GalerieNahled.html +++ b/galerie/templates/galerie/GalerieNahled.html @@ -21,11 +21,6 @@ Galerie {{galerie.nazev}} {% if galerie.titulni_obrazek %} {% endif %} - {% if galerie.popis %} -
- {{ galerie.popis }} -
- {% endif %}
{% endif %} @@ -46,25 +41,29 @@ Galerie {{galerie.nazev}} {% if podgalerie %}
{% for galerie in podgalerie %} -
+ + {% if galerie.zobrazit < 1 or user.is_staff %} {% if galerie.titulni_obrazek %} {% with galerie.titulni_obrazek.obrazek_maly as obrazek %} - + height={% widthratio obrazek.height 200 167 %} /> {% endwith %} {% endif %}
- {{ galerie }} + {{ galerie }}
- {# {% if user.is_staff and galerie.zobrazit > 0 %} #} - {# ({{galerie.poradi}}) #} - {# + #} - {# - #} - {# {% endif %} #} + + + {% comment %} + {% if user.is_staff and galerie.zobrazit > 0 %} + ({{galerie.poradi}}) + + + - + {% endif %} + {% endcomment %} {% endif %} -
{% endfor %}
{% endif %} @@ -79,15 +78,11 @@ Galerie {{galerie.nazev}} {% if obrazky %}
{% for obrazek in obrazky %} -
- - - - -
+ {% endfor %}
diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 8d20cdeb..76adb545 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -489,7 +489,6 @@ div.zadani_azad_termin { .popis { margin: 10px 10px 30px 0px; - clear: all; text-align: center; } @@ -504,17 +503,22 @@ div.zadani_azad_termin { overflow: auto; } -.galerie_nahledy img{ - margin: 0 10px 0 10px; +.galerie_nahledy div.navigace { + display: inline-block; + width: 150px; } -.galerie_nahledy a{ - height: 100%; - width: 100%; -} +/*.galerie_nahledy img{*/ +/*margin: 0 10px 0 10px;*/ +/*}*/ -.galerie_nahled{ /* frame */ - display: inline-block; +/*.galerie_nahledy a{*/ +/*height: 100%;*/ +/*width: 100%;*/ +/*}*/ + +.galerie_nahled { /* frame */ + display: block; position: relative; float: left; width: 200px; @@ -531,6 +535,11 @@ div.zadani_azad_termin { margin: 10px 20px 10px 0px; } +.galerie_nahled:hover { + background-color: #ffd546; + border-color: #ffa500; +} + .vystredeno{ /* helper */ display: inline-block; height: 100%; @@ -545,8 +554,8 @@ div.zadani_azad_termin { } -.galerie_nahled img:hover { - /*border: 1px solid #ffa500;*/ +.galerie_nahled img, .podgalerie_nahled img { + border-radius: 2px; } .galerie_nahled div { @@ -558,6 +567,7 @@ div.zadani_azad_termin { .podgalerie_nahled { + display: block; position: relative; float: left; width: 200px; @@ -572,6 +582,11 @@ div.zadani_azad_termin { /*background-color: white;*/ white-space: nowrap; margin: 10px 20px 10px 0px; + font-weight: bold; +} + +.podgalerie_nahled:hover { + background-color: #ffa500; } .podgalerie_nahled img { diff --git a/seminar/templates/seminar/soustredeni/seznam_soustredeni.html b/seminar/templates/seminar/soustredeni/seznam_soustredeni.html index 74bbee3b..be7a3644 100644 --- a/seminar/templates/seminar/soustredeni/seznam_soustredeni.html +++ b/seminar/templates/seminar/soustredeni/seznam_soustredeni.html @@ -43,19 +43,19 @@ {% for galerie in soustredeni.galerie_set.all %} {% if galerie.zobrazit == 0 or user.is_staff %}
  • - FOTOGALERIE: {{galerie}} + Fotogalerie {# TODO kdyz je titulni obrazek, tak asi i titulni obrazek #}
  • {% endif %} {% endfor %} {% endif %} + {% if user.is_staff %} -
  • - VYTVOŘIT NOVOU FOTOGALERII -
  • +
    + Vytvořit novou fotogalerii +
    {% endif %} - {# popis soustredeni #} {% if soustredeni.text %}