forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 9
/
selbstbericht.html
108 lines (85 loc) · 3.05 KB
/
selbstbericht.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
layout: default
---
{% assign chapters = ""|split: "," %}
{% assign last_chapter = "" %}
{% assign docs = site.selbstbericht|sort: 'path' %}
{% for doc in docs %}
{% assign path = doc.path |remove_first:'_selbstbericht/'|split:'/' %}
{% assign subpath = '_selbstbericht/'|append: path.first %}
{% if subpath != last_chapter %}
{% assign chapters=chapters|push:subpath %}
{% assign last_chapter=subpath %}
{% endif %}
{% endfor %}
<section class="section">
<div class="container">
<div class="content">
<h1>Selbstbericht</h1>
</div>
</div>
</section>
<section class="section selbstbericht">
<div class="container">
<h2 class="title is-4">Dokumente für die Reakkreditierung</h2>
<div class="toc">
<ol class="menu-list">
{% for chapter in chapters %}
{% assign subchapters = ""|split: "," %}
{% for doc in docs %}
{% if doc.path contains chapter %}
{% assign subchapters = subchapters|push: doc %}
{% endif %}
{% endfor %}
{% assign count = 0 %}
{% for doc in subchapters %}
{% if count == 0 %}
{% assign check = doc.aktueller-bearbeiter|strip_newlines %}
<li><a href="#{{doc.id}}">{{doc.title}} {% if check == "" %}<span class="icon"><i class="fa fa-edit"></i></span>{% else %} (derzeit bearbeitet von {{check}}){% endif %}</a></li>
{% endif %}
{% assign count = count|plus: 1 %}
{% endfor %}
{% endfor %}
</ol>
</div>
</div>
</section>
<div id="selbstbericht">
{% for chapter in chapters %}
{% assign subchapters = ""|split: "," %}
{% for doc in docs %}
{% if doc.path contains chapter %}
{% assign subchapters = subchapters|push: doc %}
{% endif %}
{% endfor %}
{% assign count = 0 %}
{% assign doc = subchapters|first %}
<section class="section selbstbericht" id="{{doc.id}}">
<div class="container">
<div class="content">
<div class="columns">
<div class="column is-8"><h1 id="{{doc.id}}">{{ doc.title }}</h1></div>
{% assign check = doc.aktueller-bearbeiter|strip_newlines %}
{% if check == "" %}
<div class="column is-4 has-text-right bearbeiten">
<a target="_blank" href="https://github.com/th-koeln/mi-2017/edit/master/{{ doc.path }}"><span class="icon"><i class="fa fa-edit"></i></span> Bearbeiten</a>
</div>
{% endif %}
</div>
{% include /functions/show-doc-status.html doc=doc %}
{{doc.content}}
{% for doc in subchapters %}
{% assign count = count|plus: 1 %}
{% if count > 1 %}
{% include /functions/shift-level.html content=doc.content %}
{% assign check = doc.aktueller-bearbeiter|strip_newlines %}
<h2 id="{{doc.id}}">{{ doc.title }}{% if check == "" %} <a target="_blank" href="https://github.com/th-koeln/mi-2017/edit/master/{{ doc.path }}"><span class="icon"><i class="fa fa-edit"></i></span> Bearbeiten</a>{% endif %}</h2>
{% include /functions/show-doc-status.html doc=doc %}
{{content}}
{% endif %}
{% endfor %}
</div>
</div>
</section>
{% endfor %}
</div>