From 0a0fa11efc7f118fe28e30ecbc7eee66aae1dbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Sun, 13 Sep 2015 22:18:04 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Zm=C4=9Bny=20organiz=C3=A1tor=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * nezobrazovat rok, když nevíme (Hroch) * fotky vycentrované v levém sloupci --- mamweb/static/css/mamweb.css | 5 +++++ seminar/templates/seminar/cojemam/organizatori.html | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 81078459..0e289f3a 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -236,6 +236,11 @@ div.zadani_azad_termin { float: right; } +.foto_org { + width: 250px; + text-align: center; +} + @media (max-width: 991px) { #header { height: 196px; diff --git a/seminar/templates/seminar/cojemam/organizatori.html b/seminar/templates/seminar/cojemam/organizatori.html index e6d5e001..41b1ea20 100644 --- a/seminar/templates/seminar/cojemam/organizatori.html +++ b/seminar/templates/seminar/cojemam/organizatori.html @@ -34,21 +34,22 @@
- {% if org.foto %}
+ {% if org.foto %} {# #} - {{org.first_name}} {{org.last_name}} -
+ {{org.user.first_name}} {{org.user.last_name}} {% endif %} +
  • {% if aktivni %} - Organizuje od roku {{org.organizuje_od_roku}} + {% if org.organizuje_od_roku %} + Organizuje od roku {{org.organizuje_od_roku}} + {% endif %} {% else %} - {#TODO časovat dle rodu #} - Organizoval v letech {{org.organizuje_od_roku}}–{{org.organizuje_do_roku}} + Aktivní v letech {{org.organizuje_od_roku | default:"?" }}–{{org.organizuje_do_roku | default:"?" }} {% endif %} {% if org.studuje %}
  • Studuje: {{org.studuje}} From f8b52d4a888aaa1dcb587ad0337e72b6540c9a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Sun, 13 Sep 2015 22:29:24 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Orgov=C3=A9:=20nezobrazuj=20ani=20
  • ,=20v?= =?UTF-8?q?ycentrov=C3=A1ny=20nadpisy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 4 ++++ seminar/templates/seminar/cojemam/organizatori.html | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 0e289f3a..73adcb29 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -241,6 +241,10 @@ div.zadani_azad_termin { text-align: center; } +#seznam_orgu h2 { + text-align: center; +} + @media (max-width: 991px) { #header { height: 196px; diff --git a/seminar/templates/seminar/cojemam/organizatori.html b/seminar/templates/seminar/cojemam/organizatori.html index 41b1ea20..12f3a506 100644 --- a/seminar/templates/seminar/cojemam/organizatori.html +++ b/seminar/templates/seminar/cojemam/organizatori.html @@ -18,7 +18,7 @@ {# zmena fotky #}{% block header %}cojemam{% endblock %} {% block content %} -
    +
    {% if not aktivni %} Aktivní organizátoři

    @@ -43,13 +43,14 @@
    -
  • {% if aktivni %} {% if org.organizuje_od_roku %} - Organizuje od roku {{org.organizuje_od_roku}} +
  • + Organizuje od roku {{org.organizuje_od_roku}} {% endif %} {% else %} - Aktivní v letech {{org.organizuje_od_roku | default:"?" }}–{{org.organizuje_do_roku | default:"?" }} +
  • + Aktivní v letech {{org.organizuje_od_roku | default:"?" }}–{{org.organizuje_do_roku | default:"?" }} {% endif %} {% if org.studuje %}
  • Studuje: {{org.studuje}}