index.html 1.9 KB
Newer Older
Dennis Appel's avatar
Dennis Appel committed
1
{% extends "base.html" %}
Dennis Appel's avatar
Dennis Appel committed
2

3 4 5 6 7 8
{% block title %}
{% with title="Startseite" %}
{{ block.super }}
{% endwith %}
{% endblock %}

Dennis Appel's avatar
Dennis Appel committed
9
{% block content %}
10
<section>
Dennis Appel's avatar
Dennis Appel committed
11

12
    {% if wiki_list %}
Dennis Appel's avatar
Dennis Appel committed
13

14
    <div class="grid-x grid-margin-x">
Dennis Appel's avatar
Dennis Appel committed
15

16 17 18 19 20 21 22 23 24 25 26 27
        <div class="cell large-2 cell-background-wiki-mg wiki-navigation">
            <div name="wiki-navigation" id="wiki-navigation" class="text-center">
            <h4>Inhaltsverzeichnis</h4>
            </div>
            <ul class="vertical menu">
                {% for entry in wiki_list %}
                <li>
                    <a class="wiki-navigation-link" href="#item_{{entry.id}}">{{entry.wikiTitle}}</a>
                </li>
                {% endfor %}
            </ul>
        </div>
Dennis Appel's avatar
Dennis Appel committed
28

29
        <div class="cell large-6 large-offset-1">
Dennis Appel's avatar
Dennis Appel committed
30

31 32 33 34 35 36
            {% for entry in wiki_list %}
            <section>
                <div class="cell cell-background-lg vertical-space" id="item_{{entry.id}}" name="item_{{entry.id}}">
                    <h2>{{entry.wikiTitle}}</h2>
                    <p>{{entry.wikiText}}</p>
                    <a class="link" href="#wiki-navigation">Zur&uuml;ck</a>
Dennis Appel's avatar
Dennis Appel committed
37

38
                    {% if entry.wikiexample_set.all %}
Dennis Appel's avatar
Dennis Appel committed
39

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
                    {% for example in entry.wikiexample_set.all %}
                    {% if example.examplePositive %}
                    <div class="callout success">
                        <h3>{{example.exampleTitle}}</h3>
                        <p>{{example.exampleText}}</p>
                    </div>
                    {% else %}
                    <div class="callout alert">
                        <h3>{{example.exampleTitle}}</h3>
                        <p>{{example.exampleText}}</p>
                    </div>
                    {% endif %}
                    {% endfor %}
                </div>
                {% endif %}
Dennis Appel's avatar
Dennis Appel committed
55

56 57
            </section>
            {% endfor %}
Dennis Appel's avatar
Dennis Appel committed
58

59 60
        </div>
    </div>
Dennis Appel's avatar
Dennis Appel committed
61

62 63
    {% endif %}
</section>
Dennis Appel's avatar
Dennis Appel committed
64
{% endblock %}