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

Dennis Appel's avatar
Dennis Appel committed
3 4
{% load staticfiles %}

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

Dennis Appel's avatar
Dennis Appel committed
11
{% block content %}
12
<section>
Dennis Appel's avatar
Dennis Appel committed
13

14
    {% if wiki_list %}
Dennis Appel's avatar
Dennis Appel committed
15

Dennis Appel's avatar
Dennis Appel committed
16
    <div class="grid-x">
Dennis Appel's avatar
Dennis Appel committed
17

18 19
        <div class="cell large-2 cell-background-wiki-mg wiki-navigation">
            <div name="wiki-navigation" id="wiki-navigation" class="text-center">
Dennis Appel's avatar
Dennis Appel committed
20
                <h4>Inhalt</h4>
21 22 23 24 25 26 27 28 29
            </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
30

Dennis Appel's avatar
Dennis Appel committed
31
        <div class="cell large-6 large-offset-1 content">
Dennis Appel's avatar
Dennis Appel committed
32

33 34 35 36 37 38
            {% 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
39

40
                    {% if entry.wikiexample_set.all %}
Dennis Appel's avatar
Dennis Appel committed
41

Dennis Appel's avatar
Dennis Appel committed
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

                    <div class="grid-x grid-margin-x">
                        <div class="cell large-6">
                            <div class="grid-x">
                                {% for example in entry.getPositiveExamples %}
                                <div class="cell vertical-space-small">
                                    <div class="callout success example-callout">
                                        <h3>{{example.exampleTitle}}</h3>
                                        <img class="example-image" src="{% static 'images/examples/' %}{{example.exampleImage}}">
                                        <p>{{example.exampleText}}</p>
                                    </div>
                                </div>
                                {% endfor %}
                            </div>
                        </div>
                        <div class="cell large-6">
                            <div class="grid-x">
                                {% for example in entry.getNegativeExamples %}
                                <div class="cell vertical-space-small">
                                    <div class="callout alert example-callout">
                                        <h3>{{example.exampleTitle}}</h3>
                                        <img class="example-image" src="{% static 'images/examples/' %}{{example.exampleImage}}">
                                        <p>{{example.exampleText}}</p>
                                    </div>
                                </div>
                                {% endfor %}
                            </div>
                        </div>
70 71 72
                    </div>
                    {% endif %}
                </div>
Dennis Appel's avatar
Dennis Appel committed
73

74 75
            </section>
            {% endfor %}
Dennis Appel's avatar
Dennis Appel committed
76

77 78
        </div>
    </div>
Dennis Appel's avatar
Dennis Appel committed
79

80 81
    {% endif %}
</section>
Dennis Appel's avatar
Dennis Appel committed
82
{% endblock %}