Skip to content

Commit b243ed6

Browse files
committed
Added manifest.json + manifest.webapp + lowres.png + address below map
Update map.html Update MapController.js extra details postalCode
1 parent 176ee57 commit b243ed6

File tree

6 files changed

+62
-0
lines changed

6 files changed

+62
-0
lines changed

app/components/map/MapController.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,18 @@ mapModule.controller('MapController',
3838
}
3939
}
4040
});
41+
4142

4243
}]);
44+
45+
mapModule.controller('AddressController',
46+
['$scope', '$sessionStorage',
47+
function($scope, $sessionStorage) {
48+
var mc = this;
49+
mc.Event = $sessionStorage.event;
50+
$scope.street = mc.Event.address.street;
51+
$scope.locality = mc.Event.address.locality;
52+
$scope.city = mc.Event.address.city;
53+
$scope.country = mc.Event.address.country;
54+
$scope.postalCode = mc.Event.address.postalCode;
55+
}]);

app/components/map/map.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@
99
</div>
1010

1111
</md-content>
12+
</div>
13+
14+
<div ng-controller="AddressController">
15+
<h1>{{ street }}
16+
</br>{{ locality }}
17+
</br>{{ city }}
18+
</br>{{ country }}
19+
</br>{{ postalCode }}
20+
</h1>
1221
</div>

icon/lowres.png

1.65 KB
Loading

manifest.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "Open-event-webapp",
3+
"description": "This is a client-side webapp, that will be used by attendees of the event.",
4+
"version": "0.0.2",
5+
"manifest_version": 2,
6+
"icons": {
7+
"128": "/icon/lowres.png"
8+
},
9+
"app": {
10+
"urls": [
11+
"http://fossasia.github.io/open-event-webapp/"
12+
],
13+
"launch": {
14+
"web_url": "http://fossasia.github.io/open-event-webapp/"
15+
}
16+
}
17+
}

manifest.webapp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Open-event-webapp",
3+
"description": "This is a client-side webapp, that will be used by attendees of the event.",
4+
"launch_path": "/index.html",
5+
"icons": {
6+
"128": "/icon/lowres.ico"
7+
},
8+
"developer": {
9+
"name": "fossasia",
10+
"url": "http://fossasia.org/"
11+
},
12+
"default_locale": "en",
13+
"chrome": {
14+
"navigation": true
15+
}
16+
}

testapi/event/1/event

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"id": 1,
99
"latitude": 52.49814,
1010
"location_name": "Station Berlin",
11+
"address": {
12+
"street" : "Luckenwalder Str. 4-6",
13+
"locality": "Kreuzberg",
14+
"city" : "Berlin",
15+
"country" : "Germany",
16+
"postalCode": 10963
17+
},
1118
"logo": "Zrzut_ekranu_2015-08-01_o_23.19.01.png",
1219
"longitude": 13.374538,
1320
"name": "re:Publica 2015",

0 commit comments

Comments
 (0)