blob: 322bfb851dfa7bf672716d8fbfa83b28a0fd7caf (
plain)
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
|
---
title: 'Gentoo Developers Map'
navtitle: 'Developer Map'
nav1: inside-gentoo
nav2: developers
nav3: map
nav3-show: true
nav3-weight: 10
layout: page-nav3
extracss: [leaflet.css]
extrajs: [leaflet.js, devmap.js]
---
<noscript>
<div class="alert alert-danger">
<h2 class="stick-top"><i class="fa fa-fw fa-ban"></i> Map display requires JavaScript</h2>
Please enable JavaScript support in your browser to view the Developer Map.
</div>
<style type="text/css">#devlist { display: none; }</style>
</noscript>
<script>
var devdata = {
{% for entry in site.data.userinfo.current %}{% if entry[1].lat %} "{{ entry[0] }}": { "name": "{{ entry[1].name }}", "lat": "{{ entry[1].lat }}", "lon": "{{ entry[1].lon }}", "location": "{{ entry[1].location }}" },
{% endif %}{% endfor %}
};
</script>
<div id="devmap" style="height: 500px; margin-bottom: 1em;"></div>
<br><br>
<div class="row">
<div class="col-xs-12 col-md-12">
<table id="devlist" class="table table-condensed table-hover">
<tr>
<th>Nickname</th>
<th>Name</th>
<th>Location</th>
</tr>
{% for entry in site.data.userinfo.current %}{% if entry[1].lat %}
<tr>
<th>{{ entry[0] }}</th>
<td>{{ entry[1].name }}</td>
<td><a href="#" data-dev="{{ entry[0] }}"><i class="fa fa-fw fa-map-marker"></i>{{ entry[1].location }}</a></td>
</tr>
{% endif %}{% endfor %}
</table>
</div>
</div>
|