Browse Source

Nová aplikace na menu.

export_seznamu_prednasek
parent
commit
275f1cfff2
  1. 3
      mamweb/settings_common.py
  2. 21
      mamweb/templates/base.html
  3. 2
      requirements.txt

3
mamweb/settings_common.py

@ -74,6 +74,7 @@ TEMPLATES = [
'OPTIONS': { 'OPTIONS': {
'context_processors': ( 'context_processors': (
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.template.context_processors.request',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'sekizai.context_processors.sekizai', 'sekizai.context_processors.sekizai',
'mamweb.context_processors.vzhled', 'mamweb.context_processors.vzhled',
@ -113,6 +114,8 @@ INSTALLED_APPS = (
'django.contrib.flatpages', 'django.contrib.flatpages',
'django.contrib.humanize', 'django.contrib.humanize',
'sitetree',
'imagekit', 'imagekit',
# MaMweb # MaMweb

21
mamweb/templates/base.html

@ -1,4 +1,5 @@
{% load staticfiles sekizai_tags %} {% load staticfiles sekizai_tags %}
{% load sitetree %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang='cs'> <html lang='cs'>
<head> <head>
@ -103,6 +104,26 @@
</div> </div>
</div> </div>
<div class='row content'> <div class='row content'>
{% sitetree_menu from "main_menu" include "trunk" %}
{#
{% for item in menu_top %}
<li class="{% if item.selected %} active {% endif %}">
<a href="{{ item.url }}"> <i class="{{ item.icon_class }}"></i> {{ item.name }}</a>
</li>
{% if item.submenu %}
<ul>
{% for menu in item.submenu %}
<li class="{% if menu.selected %} active {% endif %}">
<a href="{{ menu.url }}">{{ menu.name }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
#}
<div class='col-md-12'> <div class='col-md-12'>
{% block content %} {% block content %}
{% endblock content %} {% endblock content %}

2
requirements.txt

@ -25,6 +25,8 @@ django-taggit
django-autocomplete-light==2.3.6 django-autocomplete-light==2.3.6
django-crispy-forms django-crispy-forms
django-imagekit django-imagekit
django-polymorphic
django-sitetree
# Comments # Comments
akismet==1.0.1 akismet==1.0.1

Loading…
Cancel
Save