Remove /detail endpoint and related code
authorChloe Laisne <chloe.laisne@gmail.com>
Mon, 04 Jul 2016 12:42:57 +0200
changeset 219 3578846b66f4
parent 218 38e1a1446319
child 220 2145b80776a3
Remove /detail endpoint and related code
cms/app-client/app/controllers/application.js
cms/app-client/app/router.js
cms/app-client/app/routes/tabs/detail.js
cms/app-client/app/styles/app.scss
cms/app-client/app/styles/tabs/detail.scss
--- 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){
--- 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' });
--- 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);
-  }
-});
--- 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';
--- 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;
-}