Merge branch 'master' of 195.113.26.193:/akce/MaM/MaMweb/mamweb
This commit is contained in:
commit
51046e8ee8
3 changed files with 41 additions and 23 deletions
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):
|
||||
"""Vrati skolni rocnik resitele pro zadany Rocnik.
|
||||
"""Vrati skolni rocnik resitele pro zadany Rocnik.
|
||||
Vraci '' pro neznamy rok maturity resitele, Z* pro ekvivalent ZŠ."""
|
||||
if self.rok_maturity is None:
|
||||
return ''
|
||||
rozdil = 5 - (self.rok_maturity - rocnik.prvni_rok)
|
||||
if rozdil >= 1:
|
||||
return str(rozdil)
|
||||
else:
|
||||
return 'Z' + str(rozdil + 9)
|
||||
if self.rok_maturity is None:
|
||||
return ''
|
||||
rozdil = 5 - (self.rok_maturity - rocnik.prvni_rok)
|
||||
if rozdil >= 1:
|
||||
return str(rozdil)
|
||||
else:
|
||||
return 'Z' + str(rozdil + 9)
|
||||
|
||||
def get_titul(self, celkove_body):
|
||||
"Vrati titul podle zadaneho poctu bodu."
|
||||
if celkove_body < 10:
|
||||
return ''
|
||||
elif celkove_body < 20:
|
||||
return 'Bc.'
|
||||
elif celkove_body < 50:
|
||||
return 'Mgr.'
|
||||
elif celkove_body < 100:
|
||||
return 'Dr.'
|
||||
elif celkove_body < 200:
|
||||
return 'Doc.'
|
||||
elif celkove_body < 500:
|
||||
return 'Prof.'
|
||||
else:
|
||||
return 'Akad.'
|
||||
"Vrati titul podle zadaneho poctu bodu."
|
||||
if celkove_body < 10:
|
||||
return ''
|
||||
elif celkove_body < 20:
|
||||
return 'Bc.'
|
||||
elif celkove_body < 50:
|
||||
return 'Mgr.'
|
||||
elif celkove_body < 100:
|
||||
return 'Dr.'
|
||||
elif celkove_body < 200:
|
||||
return 'Doc.'
|
||||
elif celkove_body < 500:
|
||||
return 'Prof.'
|
||||
else:
|
||||
return 'Akad.'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -29,3 +29,4 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
{% endfor%}
|
||||
|
||||
|
|
Loading…
Reference in a new issue