Skip to content

Commit 081f00e

Browse files
committed
Developers map: Link to GIT account for each dev
1 parent 09f9bb7 commit 081f00e

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

doc/contributors.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"Committer": "Yes",
99
"First Commit Message": "Initial revision",
1010
"First Commit Date": "06-07-2002",
11-
"GIT Nickname": "gsherman"
11+
"GIT Nickname": "g-sherman"
1212
},
1313
"geometry": {
1414
"type": "Point",
@@ -141,7 +141,7 @@
141141
"Committer": "Yes",
142142
"First Commit Message": "some dutch translations for git testing",
143143
"First Commit Date": "4-9-2011",
144-
"GIT Nickname": "duiv"
144+
"GIT Nickname": "rduivenvoorde"
145145
},
146146
"geometry": {
147147
"type": "Point",
@@ -277,7 +277,7 @@
277277
"Committer": "Yes",
278278
"First Commit Message": "some bugfixes",
279279
"First Commit Date": "07-04-2004",
280-
"GIT Nickname": "rabla,rblazek,blazek"
280+
"GIT Nickname": "blazek"
281281
},
282282
"geometry": {
283283
"type": "Point",
@@ -334,7 +334,7 @@
334334
"type": "Point",
335335
"coordinates": [
336336
104.9110,
337-
11.5582
337+
11.5582
338338
]
339339
}
340340
},
@@ -627,7 +627,7 @@
627627
"Committer": "Yes",
628628
"First Commit Message": "Patch to allow setting extents from cli on startup",
629629
"First Commit Date": "03-06-2005",
630-
"GIT Nickname": "wonder"
630+
"GIT Nickname": "wonder-sk"
631631
},
632632
"geometry": {
633633
"type": "Point",

doc/developersmap.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@
2121
});
2222

2323
$.getJSON($('link[rel="points"]').attr("href"), function(data) {
24+
var nameString = '';
2425
var geojson = L.geoJson(data, {
2526
onEachFeature: function (feature, layer) {
26-
layer.bindPopup("<b>Name:</b> " + feature.properties.Name +
27-
"<br><b>Status:</b> " + (feature.properties.Committer == "Yes" ?
27+
if (feature.properties['GIT Nickname'] !== undefined){
28+
nameString = "<a href='https://github.com/" +
29+
feature.properties['GIT Nickname'] + "' target='_blank' >" +
30+
feature.properties.Name + "</a>";
31+
} else {
32+
nameString = feature.properties.Name;
33+
}
34+
layer.bindPopup("<b>Name:</b> " + nameString + "<br><b>Status:</b> " +
35+
(feature.properties.Committer == "Yes" ?
2836
"Core committer" : "Core contributor" ));
2937
}
3038
});

0 commit comments

Comments
 (0)