-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html.mustache
executable file
·193 lines (161 loc) · 7.61 KB
/
index.html.mustache
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{title}}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="{{assets}}/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="{{assets}}/style.css">
<script src="{{assets}}/bootstrap/modernizr-respond.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<div class="debug alert alert-danger alert-dismissable" style="margin: 0;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<strong>Preview!</strong><br>
{{md "TODO.md"}}
</div>
<div class="jumbotron">
<div class="container">
<h1>{{title}}</h1>
<p>{{tagline}}</p>
</div>
</div>
<div class="container">
{{#if results}}
<div id="results">
<div class="row">
<h2 class="col-sm-6">Resultate
<small>Web-Präsentation</small>
</h2>
<div class="menu js-only col-sm-6">
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="search" class="col-sm-2 control-label">Suchen:</label>
<div class="col-sm-10">
<input class="search" class="form-control" id="search" placeholder="Search" >
</div>
</div>
<div class="form-group">
<label for="sort" class="col-sm-2 control-label">Sortieren:</label>
<div class="col-sm-10">
<span id="sort" class="btn-group btn-group-xs">
<button type="button" class="sort btn btn-default" data-sort="name">
Name <span class="caret"></span>
</button>
<button type="button" class="sort btn btn-default" data-sort="study">
Studium <span class="caret"></span>
</button>
<button type="button" class="sort btn btn-default" data-sort="semester">
Semester <span class="caret"></span>
</button>
<button type="button" class="sort btn btn-default" data-sort="filesize">
kB <span class="caret"></span> <span class="badge" data-toggle="tooltip" title="kB, MB = Dateigröße in Kilobyte/Megabyte">?</span>
</button>
</span>
<span class="todo">
<button type="button" class="sort btn btn-default" data-sort="loc">
LoC <span class="caret"></span> <span class="badge" data-toggle="tooltip" data-container="body" title="LoC = 'Lines of Code', Anzahl der Code-Zeilen">?</span>
</button>
</span>
</div>
</div>
</form>
</div>
</div> <!-- end row -->
<div class="list row">
{{#each results}}
<div class="col-xs-6 col-sm-4 col-md-3">
<div class="exhibit">
<h3><span class="firstname">{{firstname}}</span> <span class="name">{{lastname}}</span></h3>
<p>
<span>
<b class="study">{{study}}</b> (<span class="semester">{{#if semester}}{{semester}}{{else}}0{{/if}}</span>)
</span>
{{#if project}} <span class="project badge" data-toggle="tooltip" data-placement="bottom" title="P = Projekt „Jugend forscht“">P</span>{{/if}}
{{#if fachkurs}} <span class="fachkurs badge" data-toggle="tooltip" data-placement="bottom" title="F = Fachkurs „Kunst–Technik–Labor“">F</span>{{/if}}
{{#if freeProject}} <span class="freeProject badge" data-toggle="tooltip" data-placement="bottom" title="FP = Freies Projekt">FP</span>{{/if}}
<span class="meta">
<span class="filesize" data-data>{{filesize}}</span>
{{#if filesize}}
<span>
{{#gte filesize 1000}}
{{ceil (divide filesize 1000)}} MB
{{else}}
{{filesize}} kB
{{/gte}}
</span>
{{/if}}
<span class="todo loc">; {{loc}} LoC </span>
</span>
</p>
<img src="{{image}}" class="img-responsive" alt="{{firstname}} {{lastname}}">
<p>{{#if text}}{{text}}{{else}}<!-- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. -->{{/if}}</p>
{{#if link}}
<p><a class="link" href="http://{{link}}">{{link}}</a>
<a class="btnx btn-xs" href="http://{{link}}" target="_blank"><span class="glyphicon glyphicon-new-window"></span></a>
</p>
{{/if}}
</div> <!-- end .exhibit -->
</div>
{{#ifNth "2" @index}}
<div class="clearfix visible-xs"></div>
{{/ifNth}}
{{#ifNth "3" @index}}
<div class="clearfix visible-sm"></div>
{{/ifNth}}
{{#ifNth "4" @index}}
<div class="clearfix visible-md visible-lg"></div>
{{/ifNth}}
{{/each}}
</div> <!-- end .row -->
{{/if}}
</div> <!-- end #results -->
<hr>
<section id="vlv">
{{md "text/vlv.md"}}
</section>
<hr>
<section id="colophon">
{{md "text/colophon.md"}}
</section>
<div class="debug alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<strong>Debug — Fehlende Infos!</strong><br><br>
<ul><b>Kein Link:</b>
{{#results}}
{{^link}}
<li>{{lastname}}, {{firstname}}</li>
{{/link}}
{{/results}}</ul><br>
<ul><b>Kein Semester:</b>
{{#results}}
{{^semester}}
<li>{{lastname}}, {{firstname}}</li>
{{/semester}}
{{/results}}</ul>
</div>
<hr>
<footer>
{{#footer}}
{{#markdown}}
{{this}}
{{/markdown}}
{{/footer}}
</footer>
</div> <!-- /container -->
<div id="scripts">
<script src="{{assets}}/bootstrap/jquery.min.js"></script>
<script src="{{assets}}/bootstrap/bootstrap.min.js"></script>
<script src="{{assets}}/list.min.js"></script>
<script src="{{assets}}/script.js"></script>
</div>
</body>
</html>