</head>
<body>
- {% include "annoy.html" %}
<div id="menu">
<ul>
<li><a class="menu" href="#toc">{% trans "Table of contents" %}</a></li>
<div id="header">
<a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" /></a>
</div>
- <div id="themes">
- <ol>
- {% for theme, fragments in book_themes %}
- <li>{{ theme }}:
- {% for fragment in fragments %}
- <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
- {% endfor %}
- </li>
- {% endfor %}
- </ol>
- </div>
{{ book.html_file.read|safe }}
{{ piwik_tag|safe }}
</body>
)
MIDDLEWARE_CLASSES = [
- 'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'piwik.django.middleware.PiwikMiddleware',
'maintenancemode.middleware.MaintenanceModeMiddleware',
'django.middleware.common.CommonMiddleware',
- 'django.middleware.cache.FetchFromCacheMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
]
'waiter',
'search',
'oai',
+ 'libraries',
]
INSTALLED_APPS_CONTRIB = [