# HG changeset patch # User Chloe Laisne # Date 1467628977 -7200 # Node ID 3578846b66f4921da9e05a3d81087583c80c2b2a # Parent 38e1a1446319d5c2e42ca97d104ce186cefec78a Remove /detail endpoint and related code diff -r 38e1a1446319 -r 3578846b66f4 cms/app-client/app/controllers/application.js --- a/cms/app-client/app/controllers/application.js Mon Jul 04 12:26:19 2016 +0200 +++ b/cms/app-client/app/controllers/application.js Mon Jul 04 12:42:57 2016 +0200 @@ -2,7 +2,7 @@ export default Ember.Controller.extend({ - queryParams: ['location', 'date', 'detail', { + queryParams: ['location', 'date', { language: 'langue', discourse: 'discours', theme: 'thematique' @@ -87,13 +87,6 @@ player: Ember.inject.service(), - detail: null, - - - modalItem: Ember.computed('detail', function() { - return this.store.findRecord('document', this.get('detail')); - }), - itemIdObserver: Ember.observer('player.item', function() { var self = this; this.store.findRecord('document', this.get('player').get('item'), { reload: true }).then(function(it){ diff -r 38e1a1446319 -r 3578846b66f4 cms/app-client/app/router.js --- a/cms/app-client/app/router.js Mon Jul 04 12:26:19 2016 +0200 +++ b/cms/app-client/app/router.js Mon Jul 04 12:42:57 2016 +0200 @@ -6,7 +6,6 @@ }); Router.map(function() { - this.route('tabs/detail', { path: '/detail/:document_id' }); this.route('tabs/langues', { path: '/langues' }); this.route('tabs/carto', { path: '/cartographie' }); this.route('tabs/thematiques', { path: '/thematiques' }); diff -r 38e1a1446319 -r 3578846b66f4 cms/app-client/app/routes/tabs/detail.js --- a/cms/app-client/app/routes/tabs/detail.js Mon Jul 04 12:26:19 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -import Ember from 'ember'; - -export default Ember.Route.extend({ - model(params) { - return this.store.findRecord('document', params.document_id); - } -}); diff -r 38e1a1446319 -r 3578846b66f4 cms/app-client/app/styles/app.scss --- a/cms/app-client/app/styles/app.scss Mon Jul 04 12:26:19 2016 +0200 +++ b/cms/app-client/app/styles/app.scss Mon Jul 04 12:42:57 2016 +0200 @@ -18,7 +18,6 @@ @import 'tabs/chrono'; @import 'tabs/langues'; - @import 'tabs/detail'; @import 'components/sorting-component'; @import 'components/filtering-component'; diff -r 38e1a1446319 -r 3578846b66f4 cms/app-client/app/styles/tabs/detail.scss --- a/cms/app-client/app/styles/tabs/detail.scss Mon Jul 04 12:26:19 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -.notice{ - padding: 10px; -} - -.notice-header, -.notice-body, -.notice-footer{ - padding: 10px 10px 0; -} - -.notice-header h2{ - margin: 0; -} - -.notice-body b{ - display: inline-block; - min-width: 140px; -}