File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 8
8
"Committer" : " Yes" ,
9
9
"First Commit Message" : " Initial revision" ,
10
10
"First Commit Date" : " 06-07-2002" ,
11
- "GIT Nickname" : " gsherman "
11
+ "GIT Nickname" : " g-sherman "
12
12
},
13
13
"geometry" : {
14
14
"type" : " Point" ,
141
141
"Committer" : " Yes" ,
142
142
"First Commit Message" : " some dutch translations for git testing" ,
143
143
"First Commit Date" : " 4-9-2011" ,
144
- "GIT Nickname" : " duiv "
144
+ "GIT Nickname" : " rduivenvoorde "
145
145
},
146
146
"geometry" : {
147
147
"type" : " Point" ,
277
277
"Committer" : " Yes" ,
278
278
"First Commit Message" : " some bugfixes" ,
279
279
"First Commit Date" : " 07-04-2004" ,
280
- "GIT Nickname" : " rabla,rblazek, blazek"
280
+ "GIT Nickname" : " blazek"
281
281
},
282
282
"geometry" : {
283
283
"type" : " Point" ,
334
334
"type" : " Point" ,
335
335
"coordinates" : [
336
336
104.9110 ,
337
- 11.5582
337
+ 11.5582
338
338
]
339
339
}
340
340
},
627
627
"Committer" : " Yes" ,
628
628
"First Commit Message" : " Patch to allow setting extents from cli on startup" ,
629
629
"First Commit Date" : " 03-06-2005" ,
630
- "GIT Nickname" : " wonder"
630
+ "GIT Nickname" : " wonder-sk "
631
631
},
632
632
"geometry" : {
633
633
"type" : " Point" ,
Original file line number Diff line number Diff line change 21
21
} ) ;
22
22
23
23
$ . getJSON ( $ ( 'link[rel="points"]' ) . attr ( "href" ) , function ( data ) {
24
+ var nameString = '' ;
24
25
var geojson = L . geoJson ( data , {
25
26
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" ?
28
36
"Core committer" : "Core contributor" ) ) ;
29
37
}
30
38
} ) ;
You can’t perform that action at this time.
0 commit comments