Skip to content

Commit

Permalink
Add two new cover photos
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Aug 3, 2017
1 parent c11b702 commit 59e75c4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
14 changes: 14 additions & 0 deletions modules/core/client/directives/tr-boards.client.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,20 @@
'license': 'CC',
'license_url': 'https://unsplash.com/license',
'file': 'mh-woman-bridge.jpg'
},
'sahara-backpacker': {
'name': 'Azer Koçulu',
'url': 'http://azer.bike/',
'license': 'CC',
'license_url': 'https://unsplash.com/license',
'file': 'ak-sahara.jpg'
},
'hitchtruck': {
'name': 'Nova Togatorop',
'url': 'http://novatogatorop.com/',
'license': 'CC',
'license_url': 'https://unsplash.com/license',
'file': 'nt-hitchtruck.jpg'
}
};

Expand Down
Binary file added modules/core/client/img/board/ak-sahara.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 modules/core/client/img/board/nt-hitchtruck.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 27 additions & 3 deletions modules/pages/client/controllers/home.client.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,35 @@
vm.windowHeight = angular.element('html').height() - headerHeight;

// Load front page's landing photos
// @todo, move part of this logic data to the DB
// @TODO Move part of this logic data to the DB
if ($stateParams.tribe && ['hitchhikers', 'dumpster-divers', 'punks'].indexOf($stateParams.tribe) > -1) {
vm.boards = ['rainbowpeople', 'hitchroad', 'desertgirl', 'hitchgirl1', 'hitchgirl2'];
// Photos for these 3 tribes
vm.boards = [
'rainbowpeople',
'hitchroad',
'desertgirl',
'hitchgirl1',
'hitchgirl2',
'hitchtruck'
];
} else {
vm.boards = Authentication.user ? ['woman-bridge', 'wavewatching'] : ['woman-bridge', 'rainbowpeople', 'hitchroad', 'hitchgirl1', 'wavewatching'];
vm.boards = Authentication.user ?
// Photos for authenticated users
[
'woman-bridge',
'wavewatching',
'sahara-backpacker'
] :
// Photos for non-authenticated users
[
'woman-bridge',
'rainbowpeople',
'hitchroad',
'hitchgirl1',
'wavewatching',
'sahara-backpacker',
'hitchtruck'
];
}

// Load suggested tribes
Expand Down

0 comments on commit 59e75c4

Please sign in to comment.