This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
/
main.html
120 lines (95 loc) · 2.81 KB
/
main.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
109
110
111
112
113
114
115
116
117
118
119
120
<head>
<title>Hmmm - CourseOrganisationPlatform</title>
</head>
<body>
<div id="container">
<div id="header_bar">
<div id="ticker">
{{> ticker}}
</div>
<div id="login">
{{loginButtons align="right"}}
</div>
<div id="mainmenu">
{{> mainmenu}}
</div>
<div id="region_sel">
{{> region_sel}}
</div>
</div>
<div id="outer">
{{> maincontent}}
</div>
</div>
</body>
<template name="mainmenu">
<span><a href="/">Home</a> </span>
<span><a href="/courselist/">Kurse</a> </span>
<span><a href="/locations/">Räume</a> </span>
<span><a href="/categorylist/">Kategorien</a> </span>
<span><a href="/page/about">About</a> </span>
<span><a href="/page/FAQ">FAQ</a> </span>
<span><a href="/profile/">Mein Profil</a> </span>
</template>
<template name="maincontent">
<div id="maincontent">
<!--
eigentlich kann man route is wegnehmen und einmal methode aufrufen
anstatt jede methode hier unten nacheinander durchzuführen
felix erklärts
-->
{{#route_is "home"}}
{{> start}}
{{/route_is}}
{{#route_is "courselist"}}
{{> home}}
{{/route_is}}
{{#route_is "courselist"}}
{{> coursepage}}
{{/route_is}}
{{#route_is "coursedetails"}}
{{#with loadcourse}}{{! This is so wrong, do you know how to do it right? }}
{{> coursedetails}}
{{/with}}
{{/route_is}}
{{#route_is "locationlist"}}
{{> locationlist}} {{! Nei, also ich weiss au noed wie mes chönti besser mache}}
{{/route_is}}
{{#route_is "locationdetails"}}
{{> locationdetails}}
{{/route_is}}
{{#route_is "categorylist"}}
{{> categorylist}}
{{/route_is}}
{{#route_is "about"}}
{{> about}}
{{/route_is}}
{{#route_is "FAQ"}}
{{> FAQ}}
{{/route_is}}
{{#route_is "profile"}}
{{> profile}}
{{/route_is}}
</div>
</template>
<template name="region_sel">
<div class="dropdown">
<a class="regions" href="/">Regions</a>
<div class="dropdown-menu">
<ul role="menu" aria-labelledby="dLabel">
{{# each regions}}
<li><a class="regionselect" href="{{_id}}">{{name}}</a></li>
{{/each}}
</ul>
</div>
</div>
</template>
<!-- ///////////// Demo-Page-Ticker ///////////// -->
<template name="ticker">
<marquee bgcolor = "000000" direction="left" scrollamount="5" scrolldelay="1" style="color: white;">
Achtung: Dies ist nur eine <b>Testseite</b>. <span style = "padding-left:10em"> </span>
alle Daten werden regelmässig gelöscht. <span style = "padding-left:30em"> </span>
This is only a <b>Testpage</b>. <span style = "padding-left:10em"> </span>
All data will be erased regularly. <span style = "padding-left:10em"> </span>
</marquee>
</template>