This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·322 lines (292 loc) · 13.4 KB
/
index.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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Telemark fylkeskommune - Ansatte</title>
<meta name="description" content="Kontaktinformasjon til ansatte i Telemark fylkeskommune">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/x-handlebars" id="application">
<div class="header container">
<ul class="nav nav-pills pull-right">
{{#link-to 'index' tagName='li'}}
<a {bind-attr href="view.href"}><span class="glyphicon glyphicon-home"></span> Hjem</a>
{{/link-to}}
{{#link-to 'avdelinger' tagName='li'}}
<a {bind-attr href="view.href"}><span class="glyphicon glyphicon-user"></span> Avdelinger</a>
{{/link-to}}
{{#link-to 'personvern' tagName='li'}}
<a {bind-attr href="view.href"}><span class="glyphicon glyphicon-tower"></span> Personvern</a>
{{/link-to}}
</ul>
<h3 class="text-muted">Telemark fylkeskommune: ansatte</h3>
<div class="input-group">
<label class="sr-only" for="SearchText">Søkekriterier</label>
{{input type="text" id='SearchText' classNames="form-control" placeholder="Søk etter ansatte" value=search action="doSearch"}}
<span class="input-group-btn">
<button class="btn btn-default" type="button" {{action 'doSearch'}}><span class="glyphicon glyphicon-search"></span> Søk</button>
</span>
</div>
</div>
<div class="container">
{{outlet}}
</div>
<div class="footer container">
<p class="credits">
<a href="http://www.telemark.no" target="_blank" title="Besøk websiden til Telemark fylkeskommune"><span class="glyphicon glyphicon-globe"></span> Telemark fylkeskommune</a>
<a href="https://github.com/telemark" target="_blank" title="Besøk Telemark fylkeskommunes side på GitHub"><span class="glyphicon glyphicon-globe"></span> GitHub</a>
<a href="http://apps.t-fk.no/api" target="_blank" title="Besøk Telemark fylkeskommunes sider om åpne data, deling og API"><span class="glyphicon glyphicon-globe"></span> Åpne data/deling/API</a>
</p>
</div>
</script>
<script type="text/x-handlebars" id="index">
<h1>Finn ansatte</h1>
Her kan du søke etter ansatte og se en oversikt over alle {{#link-to 'avdelinger'}}avdelinger{{/link-to}} i Telemark fylkeskommune.
Søkefeltet ligger øverst på siden.
</script>
<script type="text/x-handlebars" id="avdelinger">
<h1>Avdelinger</h1>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Navn</th>
<th>E-post</th>
<th>Nettside</th>
</tr>
</thead>
<tbody>
{{#each}}
<tr>
<td>{{#link-to 'avdeling' departmentId}}{{departmentName}}{{/link-to}}</td>
<td>
{{#if email}}
<span class="glyphicon glyphicon-envelope"></span> <a {{bind-attr href=formattedMail}} title="Send e-post">{{email}}</a>
{{/if}}
</td>
<td>
{{#if url}}
<span class="glyphicon glyphicon-globe"></span> <a {{bind-attr href=formattedUrl}} target="_blank" title="Besøk nettsiden (åpnes i nytt vindu)">{{url}}</a>
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" id="avdeling">
<h1>{{departmentName}}</h1>
<table class="table">
<tbody>
{{#if email}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-envelope"></span></td>
<td><a {{bind-attr href=formattedMail}} title="Send e-post">{{email}}</a></td>
</tr>
{{/if}}
{{#if url}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-globe"></span></td>
<td><a {{bind-attr href=formattedUrl}} target="_blank" title="Besøk nettstedet (åpnes i nytt vindu)">{{url}}</a></td>
</tr>
{{/if}}
{{#if openingHours}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-time"></span></td>
<td>{{openingHours}}</td>
</tr>
{{/if}}
{{#each places}}
{{#if name}}
<tr>
<td colspan="2"><strong>{{name}}</strong></td>
</tr>
{{/if}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-home"></span></td>
<td>{{address}}</td>
</tr>
<tr>
<td class="width20"><span class="glyphicon glyphicon-phone-alt"></span></td>
<td>{{phone}}</td>
</tr>
{{/each}}
</tbody>
</table>
<ul class="nav nav-pills">
{{#link-to 'avdeling.ansatte' tagName='li'}}
<a {bind-attr href="view.href"}>Vis ansatte</a>
{{/link-to}}
{{#link-to 'avdeling.kart' tagName='li'}}
<a {bind-attr href="view.href"}>Vis kart</a>
{{/link-to}}
</ul>
<div class="clearfix"></div>
{{outlet}}
</script>
<script type="text/x-handlebars" id="avdeling/ansatte">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Navn</th>
<th>E-post</th>
<th>Telefon</th>
</tr>
</thead>
<tbody>
{{#each}}
<tr>
<td>{{#link-to 'ansatt' personId}}{{givenName}} {{familyName}}{{/link-to}}</td>
<td>
{{#if email}}
<span class="glyphicon glyphicon-envelope"></span> <a {{bind-attr href=formattedMail}} title="Send e-post">{{email}}</a>
{{/if}}
</td>
<td>
{{#if mobilePhone}}
<span class="glyphicon glyphicon-phone"></span> <a {{bind-attr href=formattedMobile}} title="Ring mobilen">{{mobilePhone}}</a>
{{/if}}
{{#if workPhone}}
<span class="glyphicon glyphicon-earphone"></span> <a {{bind-attr href=formattedPhone}} title="Ring telefonen">{{workPhone}}</a>
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" id="avdeling/kart">
{{#each places}}
{{google-map name=name address=address}}
{{/each}}
</script>
<script type="text/x-handlebars" id="ansatt">
<h1>{{givenName}} {{familyName}}</h1>
<table class="table">
<tbody>
{{#if email}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-envelope"></span></td>
<td><a {{bind-attr href=formattedMail}} title="Send e-post">{{email}}</a></td>
</tr>
{{/if}}
{{#if mobilePhone}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-phone"></span></td>
<td><a {{bind-attr href=formattedMobile}} title="Ring mobilen">{{mobilePhone}}</a></td>
</tr>
{{/if}}
{{#if workPhone}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-earphone"></span></td>
<td><a {{bind-attr href=formattedPhone}} title="Ring telefonen">{{workPhone}}</a></td>
</tr>
{{/if}}
{{#each a in positions}}
<tr>
<td class="width20"><span class="glyphicon glyphicon-home"></span></td>
<td>{{#link-to 'avdeling' a.departmentId}}{{a.departmentName}}{{/link-to}}</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" id="personvern">
<h1>Personvernerklæring</h1>
<div class="col-lg-9">
<div class="lead">
Les om hvordan Telemarks fylkeskommune samler inn og bruker informasjon om besøkende på våre nettsteder.
</div>
<h2>Bruk av Google Analytics</h2>
<div>
En del av arbeidet med å lage et brukervennlig nettsted, er å studere brukermønsteret til de som besøker nettstedet.
</div>
<div>
<p>
For å analysere informasjonen, bruker vi analyseverktøyet Google Analytics. Verktøyet benytter informasjonskapsler/cookies, som registrerer brukernes IP-adresse, og som gir informasjon om den enkelte brukers bevegelser på nett.
</p>
<p>
Eksempler på hva statistikken gir oss svar på er; hvor mange som besøker ulike sider, hvor lenge besøket varer, hvilke nettsteder brukerne kommer fra og hvilke nettlesere som benyttes. Ingen av informasjonskapslene gjør at vi kan knytte informasjon om din bruk av nettstedet til deg som enkeltperson.
</p>
<p>
Informasjonen fra Google Analytics lagres på Googles servere i USA. Mottatte opplysninger er underlagt <a
href="http://www.google.com/intl/no/policies/privacy/" target="_blank"><span class="glyphicon glyphicon-globe"></span> Googles retningslinjer for personvern</a>.
</p>
<p>
En IP-adresse er definert som en personopplysning fordi den kan spores tilbake til en bestemt maskinvare og dermed til en enkeltperson. Derfor bruker vi et script (kode) som fjerner de siste sifrene fra IP-adressen før informasjonen lagres av Google. Dermed kan ikke den lagrede IP-adressen brukes til å identifisere den enkelte brukeren.
</p>
</div>
</div>
<div class="col-lg-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Les mer om cookies</h3>
</div>
<div class="panel-body">
<p><a href="http://www.nettvett.no/personvern/informasjonskapsler-cookies/slik-avviser-du-informasjonskapsler-cookies" target="_blank" title="Les om hvordan du avviser cookies på nettstedet nettvett.no"><span class="glyphicon glyphicon-globe"></span> Slik avviser du cookies</a> (fra nettvett.no)</p>
<p><a href="http://www.nettvett.no/personvern/informasjonskapsler-cookies/slik-sletter-du-informasjonskapsler-cookies" target="_blank" title="Les om hvordan du sletter cookies på nettstedet nettvett.no"><span class="glyphicon glyphicon-globe"></span> Slik sletter du cookies</a> (fra nettvett.no)</p>
</div>
</div>
</div>
<div class="clearfix"></div>
</script>
<script type="text/x-handlebars" id="search">
<h1>Søkeresultat{{#if model}}: {{model.length}} treff{{/if}}</h1>
{{#if model}}
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Navn</th>
<th>Avdeling</th>
<th>E-post</th>
<th>Telefon</th>
</tr>
</thead>
<tbody>
{{#each}}
<tr>
<td>{{#link-to 'ansatt' personId}}{{givenName}} {{familyName}}{{/link-to}}</td>
<td>
{{#if positions}}
{{#each d in positions}}
<span class="glyphicon glyphicon-home"></span> {{#link-to 'avdeling' d.departmentId}}{{d.departmentName}}{{/link-to}}
{{/each}}
{{/if}}
</td>
<td>
{{#if email}}
<span class="glyphicon glyphicon-envelope"></span> <a {{bind-attr href=formattedMail}}>{{email}}</a>
{{/if}}
</td>
<td>
{{#if mobilePhone}}
<span class="glyphicon glyphicon-phone"></span> <a {{bind-attr href=formattedMobile}} title="Ring mobilen">{{mobilePhone}}</a>
{{/if}}
{{#if workPhone}}
<span class="glyphicon glyphicon-earphone"></span> <a {{bind-attr href=formattedPhone}} title="Ring telefonen">{{workPhone}}</a>
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{/if}}
</script>
<script type="text/x-handlebars" id="components/google-map">
{{#if name}}
<h2>{{name}}</h2>
{{/if}}
<div class="fluid-wrapper">
<iframe width="600" height="480" frameborder="0" style="border:0" {{bind-attr src=fullAdresse}}/></iframe>
</div>
</script>
<script src="js/libs/jquery-1.11.0.min.js"></script>
<script src="js/libs/handlebars-1.1.2.js"></script>
<script src="js/libs/ember-1.5.0.min.js"></script>
<script src="js/app.js"></script>
<!-- to activate the test runner, add the "?test" query string parameter -->
<script src="tests/runner.js"></script>
</body>
</html>