Merge branch 'master' of atrey.karlin.mff.cuni.cz:/akce/MaM/MaMweb/mamweb
This commit is contained in:
commit
8c66743d1f
5 changed files with 46 additions and 29 deletions
|
@ -65,7 +65,7 @@
|
||||||
<li class="{% block menu_zadani %}{% endblock %}"><a href="/zadani/aktualni/">Zadání</a>
|
<li class="{% block menu_zadani %}{% endblock %}"><a href="/zadani/aktualni/">Zadání</a>
|
||||||
<li class="{% block menu_clanky %}{% endblock %}"><a href="/clanky/uvod/">Články</a>
|
<li class="{% block menu_clanky %}{% endblock %}"><a href="/clanky/uvod/">Články</a>
|
||||||
<li class="{% block menu_archiv %}{% endblock %}"><a href="/archiv/cisla/">Archiv</a>
|
<li class="{% block menu_archiv %}{% endblock %}"><a href="/archiv/cisla/">Archiv</a>
|
||||||
<li class="{% block menu_odevzdat %}{% endblock %}">{#<a href="/odevzdat-reseni/muj-ucet">#}Odeslat řešení{#</a>#}
|
<li class="{% block menu_odevzdat %}{% endblock %}"><a href="/odevzdat-reseni/muj-ucet/">Odeslat řešení</a>
|
||||||
</ul>
|
</ul>
|
||||||
{# ======== KONEC MENU =============#}
|
{# ======== KONEC MENU =============#}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,12 +2,11 @@
|
||||||
|
|
||||||
{% block title %}{{ flatpage.title }}{% endblock title %}
|
{% block title %}{{ flatpage.title }}{% endblock title %}
|
||||||
|
|
||||||
|
{% block nadpis1a %}{% block nadpis1b%}
|
||||||
|
{{ flatpage.title }}
|
||||||
|
{% endblock %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>
|
|
||||||
{% block nadpis1a %}{% block nadpis1b%}
|
|
||||||
{{ flatpage.title }}
|
|
||||||
{% endblock %}{% endblock %}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{{ flatpage.content }}
|
{{ flatpage.content }}
|
||||||
|
|
17
mamweb/templates/menu.html
Normal file
17
mamweb/templates/menu.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{% load i18n cache mam_menu %}
|
||||||
|
{% aktualni_rocniky as rs %}
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="/co-je-MaM/uvod/">Co je M&M</a>
|
||||||
|
<li><a href="{% url 'seminar_seznam_soustredeni' %}">Soustředění</a>
|
||||||
|
<li><a href="/zadani/aktualni/">Zadání</a>
|
||||||
|
<li><a href="/clanky/uvod/">Články</a>
|
||||||
|
<li><a href="/archiv/cisla/">Archiv</a>
|
||||||
|
<li><a href="/odevzdat-reseni/muj-ucet">Odeslat řešení</a>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- TODO smazat <ul>
|
||||||
|
{% for r in rs %}
|
||||||
|
<li><a href='{{ r.verejne_url }}'>Ročník {{ r }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>-->
|
|
@ -211,32 +211,32 @@ class Resitel(SeminarModelBase):
|
||||||
}
|
}
|
||||||
|
|
||||||
def rocnik(self, rocnik):
|
def rocnik(self, rocnik):
|
||||||
"""Vrati skolni rocnik resitele pro zadany Rocnik.
|
"""Vrati skolni rocnik resitele pro zadany Rocnik.
|
||||||
Vraci '' pro neznamy rok maturity resitele, Z* pro ekvivalent ZŠ."""
|
Vraci '' pro neznamy rok maturity resitele, Z* pro ekvivalent ZŠ."""
|
||||||
if self.rok_maturity is None:
|
if self.rok_maturity is None:
|
||||||
return ''
|
return ''
|
||||||
rozdil = 5 - (self.rok_maturity - rocnik.prvni_rok)
|
rozdil = 5 - (self.rok_maturity - rocnik.prvni_rok)
|
||||||
if rozdil >= 1:
|
if rozdil >= 1:
|
||||||
return str(rozdil)
|
return str(rozdil)
|
||||||
else:
|
else:
|
||||||
return 'Z' + str(rozdil + 9)
|
return 'Z' + str(rozdil + 9)
|
||||||
|
|
||||||
def get_titul(self, celkove_body):
|
def get_titul(self, celkove_body):
|
||||||
"Vrati titul podle zadaneho poctu bodu."
|
"Vrati titul podle zadaneho poctu bodu."
|
||||||
if celkove_body < 10:
|
if celkove_body < 10:
|
||||||
return ''
|
return ''
|
||||||
elif celkove_body < 20:
|
elif celkove_body < 20:
|
||||||
return 'Bc.'
|
return 'Bc.'
|
||||||
elif celkove_body < 50:
|
elif celkove_body < 50:
|
||||||
return 'Mgr.'
|
return 'Mgr.'
|
||||||
elif celkove_body < 100:
|
elif celkove_body < 100:
|
||||||
return 'Dr.'
|
return 'Dr.'
|
||||||
elif celkove_body < 200:
|
elif celkove_body < 200:
|
||||||
return 'Doc.'
|
return 'Doc.'
|
||||||
elif celkove_body < 500:
|
elif celkove_body < 500:
|
||||||
return 'Prof.'
|
return 'Prof.'
|
||||||
else:
|
else:
|
||||||
return 'Akad.'
|
return 'Akad.'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,3 +29,4 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue