Skip to content

Commit

Permalink
Merge pull request #22 from umpirsky/restaurant/la-strega
Browse files Browse the repository at this point in the history
La strega
  • Loading branch information
umpirsky committed May 9, 2015
2 parents 7ebfcb0 + 33e6d11 commit 6dfa910
Show file tree
Hide file tree
Showing 23 changed files with 64 additions and 4 deletions.
16 changes: 16 additions & 0 deletions app/data/la-strega.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "La Strega",
"logo": "images/restaurant/la-strega.png",
"phone": "065 290 22 22, 018 29 22 22",
"delivery": true,
"address": "Nikole Pašića 1, Niš",
"url": "http://www.picerijalastrega.rs",
"images": [
"images/menu/la-strega/1.jpg",
"images/menu/la-strega/2.jpg",
"images/menu/la-strega/3.jpg",
"images/menu/la-strega/4.jpg",
"images/menu/la-strega/5.jpg",
"images/menu/la-strega/6.jpg"
]
}
12 changes: 12 additions & 0 deletions app/data/novopazarski-cevap-deset-sa-lukom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Novopazarski ćevap deset sa lukom",
"logo": "images/restaurant/novopazarski-cevap-deset-sa-lukom.png",
"phone": "063 70 77 901",
"delivery": true,
"address": "Nikole Pašića 2, Niš",
"url": "https://www.facebook.com/pages/Novopazarski-%C4%87evap-Deset-ucelo/1496451907287776",
"images": [
"images/menu/novopazarski-cevap-deset-sa-lukom/1.jpg",
"images/menu/novopazarski-cevap-deset-sa-lukom/2.jpg"
]
}
4 changes: 3 additions & 1 deletion app/data/pizza-boss.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"images/menu/pizza-boss/3.jpg",
"images/menu/pizza-boss/4.jpg",
"images/menu/pizza-boss/5.jpg",
"images/menu/pizza-boss/6.jpg"
"images/menu/pizza-boss/6.jpg",
"images/menu/pizza-boss/7.jpg",
"images/menu/pizza-boss/8.jpg"
]
}
12 changes: 12 additions & 0 deletions app/data/rapido.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Rapido",
"logo": "images/restaurant/rapido.jpg",
"phone": "060 529 11 10, 018 29 11 11",
"delivery": true,
"address": "Nikole Pašića 1, Niš",
"url": "http://www.picerijalastrega.rs",
"images": [
"images/menu/rapido/1.jpg",
"images/menu/rapido/2.jpg"
]
}
18 changes: 18 additions & 0 deletions app/data/restaurants.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
"logo": "images/restaurant/geppetto.jpg",
"tags": "pica, sendvič,palačinka"
},
{
"name": "Rapido",
"slug": "rapido",
"logo": "images/restaurant/rapido.jpg",
"tags": "salata, sendvič, palačinka"
},
{
"name": "La Strega",
"slug": "la-strega",
"logo": "images/restaurant/la-strega.png",
"tags": "pasta, pica, palačinka"
},
{
"name": "Cezar",
"slug": "cezar",
Expand All @@ -77,6 +89,12 @@
"logo": "images/restaurant/kabak.jpg",
"tags": "burek, pica, pecivo, sendvič, kroasan"
},
{
"name": "Novopazarski ćevap deset sa lukom",
"slug": "novopazarski-cevap-deset-sa-lukom",
"logo": "images/restaurant/novopazarski-cevap-deset-sa-lukom.png",
"tags": "ćevap, pljeskavica, sudžuk"
},
{
"name": "Pizza Boss",
"slug": "pizza-boss",
Expand Down
Binary file added app/images/menu/la-strega/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/la-strega/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/la-strega/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/la-strega/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/la-strega/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/la-strega/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/pizza-boss/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/pizza-boss/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/rapido/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/menu/rapido/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/restaurant/la-strega.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/restaurant/pizza-boss.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/images/restaurant/rapido.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/scripts/services/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ angular.module('restaurantsServices', [])
link.href = url;

if (-1 !== link.href.indexOf('facebook.com/pages')) {
return link.pathname.split('/')[2];
return window.decodeURIComponent(link.pathname.split('/')[2]);
}

if (-1 !== link.hostname.indexOf('facebook')) {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/scenarios.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ describe('Restaurants App', function() {
var restaurantList = element.all(by.repeater('restaurant in restaurants'));
var query = element(by.model('query'));

expect(restaurantList.count()).toBe(14);
expect(restaurantList.count()).toBe(17);

query.sendKeys('Cezar');
expect(restaurantList.count()).toBe(1);

query.clear();
query.sendKeys('pica');
expect(restaurantList.count()).toBe(8);
expect(restaurantList.count()).toBe(9);
});
});
});

0 comments on commit 6dfa910

Please sign in to comment.