<section class="section-minor">
<h1>Kompetencje:</h1>
<ul class="plain">
- {% competence object.dc.competences %}
+ {% competence object.dc.competences object.level %}
</ul>
</section>
{% endif %}
{% load url_for_level from curriculum_tags %}
{% if comps %}
- {% for comp in comps %}
- <li><a href="{{ competence|url_for_level:object.level }}">
+ {% for competence in comps %}
+ <li><a href="{{ competence|url_for_level:level }}">
{{ competence }}</a></li>
{% endfor %}
{% else %}
@register.inclusion_tag("curriculum/snippets/competence.html")
-def competence(texts):
+def competence(texts, level):
try:
comps = [Competence.from_text(text) for text in texts]
except:
return {'texts': texts}
return {
'comps': comps,
+ 'level': level,
}
@register.inclusion_tag("curriculum/snippets/curriculum.html")