-{% extends "base_mil.html" %}
+{% extends base_template %}
{% block title %}{{ object }}{% endblock %}
-{% extends "base_mil.html" %}
+{% extends base_template %}
{% load chunks %}
{% load i18n %}
--- /dev/null
+def base_template(request):
+ base_template = 'base_mil.html' if request.META.get('HTTP_HOST').startswith('katalog') else 'base.html'
+ return dict(base_template = base_template)
\ No newline at end of file
if 'django.contrib.messages' in INSTALLED_APPS else None,
"django.core.context_processors.request",
'pybb.context_processors.processor',
+ 'edumed.context_processors.base_template'
) if x is not None)
{% block top_navigation %}
<li><a class="menu-lekcje" href="{% url "catalogue_lessons" %}">Lekcje</a></li>
<li><a class="menu-wspolpraca" href="{% url "info" "wspolpraca/" %}">Współpraca</a></li>
+ <li><a class="menu-kompetencje" href="{% url "curriculum" %}">Kompetencje</a></li>
<li><a class="menu-szkolenia" href="{% url "info" "turniej/" %}">Turniej</a></li>
<li><a class="menu-wesprzyj" href="{% url "info" "wesprzyj/" %}">Wesprzyj nas</a></li>
<li><a class="menu-o-nas" href="{% url "info" "o-nas/" %}">O nas</a></li>
url(r'^forum/profile/edit/$', AvatarlessProfileEditView.as_view(), name='edit_profile'),
url(r'^forum/', include('forum.urls')),
url(r'^forum/', include('pybb.urls', namespace='pybb')),
+ url(r'^kompetencje/', include('curriculum.urls')),
)