Browse Source
Conflicts: mamweb/templates/menu.html seminar/templates/seminar/novinky.html seminar/views.pyremotes/origin/vyslbez12
Aneta
9 years ago
42 changed files with 587 additions and 333 deletions
After Width: | Height: | Size: 679 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 572 B |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 653 B |
@ -1,6 +1,4 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block submenu %} |
|||
{% include "seminar/archiv/submenu.html" %} |
|||
{% endblock %} |
|||
{% block menu_archiv %}selected{% endblock %} |
|||
|
|||
|
@ -0,0 +1,8 @@ |
|||
{% extends "seminar/archiv/base.html" %} |
|||
|
|||
{% block submenu %} |
|||
{% with "cisla" as selected %} |
|||
{% include "seminar/archiv/submenu.html" %} |
|||
{% endwith %} |
|||
{% endblock %} |
|||
|
@ -0,0 +1,8 @@ |
|||
{% extends "seminar/archiv/base.html" %} |
|||
|
|||
{% block submenu %} |
|||
{% with "temata" as selected %} |
|||
{% include "seminar/archiv/submenu.html" %} |
|||
{% endwith %} |
|||
{% endblock %} |
|||
|
@ -0,0 +1,10 @@ |
|||
{% extends "seminar/archiv/base.html" %} |
|||
|
|||
{% block menu_archiv %}selected{% endblock %} |
|||
|
|||
{% block submenu %} |
|||
{% with "ulohy" as selected %} |
|||
{% include "seminar/archiv/submenu.html" %} |
|||
{% endwith %} |
|||
{% endblock %} |
|||
|
@ -0,0 +1,23 @@ |
|||
{% extends "seminar/archiv/base_temata.html" %} |
|||
|
|||
{% block content %} |
|||
<h2> |
|||
{% block nadpis1a %}{% block nadpis1b %} |
|||
Archiv témat |
|||
{% endblock %}{% endblock%} |
|||
</h2> |
|||
|
|||
{% for tema in object_list %} |
|||
{% with tema.cislo_zadani.rocnik.rocnik as rocnik %} |
|||
{% ifchanged rocnik %} |
|||
{% if not forloop.first %}</ul>{% endif %} |
|||
<h3>{{ rocnik }}. ročník</h3> |
|||
<ul> |
|||
{% endifchanged %} |
|||
<li> |
|||
<a href="{{ tema.verejne_url }}">{{ tema.kod_v_rocniku }}: {{ tema.nazev }}</a> |
|||
{% endwith %} |
|||
{% endfor %} |
|||
</ul> |
|||
|
|||
{% endblock content %} |
@ -1,15 +1,32 @@ |
|||
{% extends 'base.html' %} |
|||
Před začátkem bloku. |
|||
{% block body %} |
|||
Tady bude začátek. |
|||
{% for novinka in novinky %} |
|||
{% if novinka.datum > pred_2_mesici and novinka.zverejneno %} |
|||
<p> |
|||
Tady bude novinka. |
|||
{{ novinka.text }} |
|||
</p> |
|||
<img src='{{ novinka.obrazek }}'> |
|||
{% for novinka in object_list %} |
|||
{# pripravene div-y na stylovani#} |
|||
<div> |
|||
{# datum #} |
|||
<div><b>{{novinka.datum}}</b></div> |
|||
{# text #} |
|||
{{ novinka.text | safe }} |
|||
{# obrazek #} |
|||
{% if novinka.obrazek %} |
|||
<div> |
|||
<img src='{{novinka.obrazek.url}}' |
|||
height=' |
|||
{% if novinka.obrazek.height > 200 %} {# vyska obrazku natvrdo #} |
|||
200 |
|||
{% else %} |
|||
{{novinka.obrazek.height}} |
|||
{% endif%} |
|||
'> |
|||
</div> |
|||
{% endif %} |
|||
{# autor #} |
|||
{% if user.is_staff %} |
|||
<div>{{novinka.autor.first_name}} |
|||
{% if novinka.autor.organizator.prezdivka%} |
|||
„{{novinka.autor.organizator.prezdivka}}“ |
|||
{% endif %} |
|||
{{novinka.autor.last_name}} |
|||
</div> |
|||
{% endif %} |
|||
</div> |
|||
{% endfor%} |
|||
Tady bude konec. |
|||
{% endblock %} |
|||
|
|||
|
@ -1,9 +1,9 @@ |
|||
{% with "/soustredeni" as cesta %} |
|||
|
|||
<ul> |
|||
<li><a href="{{cesta}}/uvod/">Úvod</a> |
|||
<li><a href="{{cesta}}/pripravujeme/">Připravujeme</a> |
|||
<li><a href="{{cesta}}/probehlo/">Proběhlo</a> |
|||
<li class="{% if selected == "uvod" %}selected{% endif %}"><a href="{{cesta}}/">Úvod</a> |
|||
<li class="{% if selected == "pripravujeme" %}selected{% endif %}"><a href="{{cesta}}/pripravujeme/">Připravujeme</a> |
|||
<li class="{% if selected == "probehlo" %}selected{% endif %}"><a href="{{cesta}}/probehlo/">Proběhlo</a> |
|||
</ul> |
|||
|
|||
{% endwith %} |
|||
|
@ -0,0 +1,13 @@ |
|||
{% extends 'base.html' %} |
|||
|
|||
{% block content %} |
|||
|
|||
<h2> |
|||
{% block nadpis1a %}{% block nadpis1b %} |
|||
Archiv novinek |
|||
{% endblock %}{% endblock %} |
|||
</h2> |
|||
|
|||
{% include 'seminar/novinky.html' %} |
|||
|
|||
{% endblock %} |
@ -1,8 +1,20 @@ |
|||
Trala! |
|||
{% extends 'base.html' %} |
|||
|
|||
HU! |
|||
{% block novinky %} |
|||
Tady bude nadpis pro novinky. |
|||
{% include 'novinky.html' %} |
|||
|
|||
{% block content %} |
|||
|
|||
{# Uvitaci text #} |
|||
<h2> |
|||
{% block nadpis1a %}{% block nadpis1b %} |
|||
Tož vitajte! |
|||
{% endblock %}{% endblock %} |
|||
</h2> |
|||
<p> Uvítací text či-co.</p> |
|||
|
|||
{# Novinky #} |
|||
<h2>Novinky</h2> |
|||
{% include 'seminar/novinky.html' %} |
|||
|
|||
<a href='/stare-novinky/'>Archiv novinek</a> |
|||
|
|||
{% endblock %} |
|||
|
@ -1,11 +1,11 @@ |
|||
{% with "/zadani" as cesta %} |
|||
|
|||
<ul> |
|||
<li><a href="{{cesta}}/aktualni/">Aktuální zadání</a> |
|||
<li><a href="{{cesta}}/ulohy/">Úlohy</a> |
|||
<li><a href="{{cesta}}/temata/">Témata</a> |
|||
<li><a href="{{cesta}}/aktualni-cislo/">Aktuální číslo</a> |
|||
<li><a href="{{cesta}}/vysledkove-listiny/">Výsledkové listiny</a> |
|||
<li class="{% if selected == "aktualni" %}selected{% endif %}"><a href="{{cesta}}/aktualni/">Aktuální zadání</a> |
|||
<li class="{% if selected == "ulohy" %}selected{% endif %}"><a href="{{cesta}}/ulohy/">Úlohy</a> |
|||
<li class="{% if selected == "temata" %}selected{% endif %}"><a href="{{cesta}}/temata/">Témata</a> |
|||
<li class="{% if selected == "aktualni-cislo" %}selected{% endif %}"><a href="{{cesta}}/aktualni-cislo/">Aktuální číslo</a> |
|||
<li class="{% if selected == "vysledkove-listiny" %}selected{% endif %}"><a href="{{cesta}}/vysledkove-listiny/">Výsledkové listiny</a> |
|||
</ul> |
|||
|
|||
{% endwith %} |
|||
|
Loading…
Reference in new issue