# HG changeset patch # User nowmad@23.1.168.192.in-addr.arpa # Date 1453455352 -3600 # Node ID f7ab931581aff813ed7868762532f2a9087c2fd9 # Parent 62984937a062a6d3b7c6b41cbf8230746fc35473 improve interface diff -r 62984937a062 -r f7ab931581af cms/app-client/app/components/visu-carto.js --- a/cms/app-client/app/components/visu-carto.js Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/components/visu-carto.js Fri Jan 22 10:35:52 2016 +0100 @@ -41,12 +41,14 @@ }, { id: "asia", linkToObject: worldDataProvider, - color: "#E0EEEF", + color: "#fff", + selectable: false, passZoomValuesToTarget: true }, { id: "australia", linkToObject: worldDataProvider, - color: "#E0EEEF", + color: "#fff", + selectable: false, passZoomValuesToTarget: true }, { id: "europe", @@ -61,7 +63,8 @@ }, { id: "south_america", linkToObject: worldDataProvider, - color: "#E0EEEF", + color: "#fff", + selectable: false, passZoomValuesToTarget: true }] @@ -77,7 +80,7 @@ rollOverOutlineColor: "#000000", selectedOutlineColor: "#CC0000", selectedColor: "green", - color: "#E0EEEF" + color: "#fff" }, dataProvider: continentsDataProvider, @@ -117,7 +120,7 @@ areaList.push({ id: elt.id, linkToObject: (elt.id === "FR" ? dataProvider : ""), - color: ((typeof(count[elt.id]) === "undefined") ? "#E0EEEF" : "#2D7073"), + color: ((typeof(count[elt.id]) === "undefined") ? "#fff" : "#2D7073"), autoZoom: (elt.id === "FR" ? true : false), selectable: true, passZoomValuesToTarget: false diff -r 62984937a062 -r f7ab931581af cms/app-client/app/components/visu-langues.js --- a/cms/app-client/app/components/visu-langues.js Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/components/visu-langues.js Fri Jan 22 10:35:52 2016 +0100 @@ -3,9 +3,8 @@ export default Ember.Component.extend({ didInsertElement: function(){ var _this = this; - var margin = {top: 20, right: 0, bottom: 0, left: 0}, - width = 560, + width = Ember.$("#chart_div").width(), height = 600 - margin.top - margin.bottom, formatNumber = d3.format(",d"), transitioning; diff -r 62984937a062 -r f7ab931581af cms/app-client/app/controllers/application.js --- a/cms/app-client/app/controllers/application.js Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/controllers/application.js Fri Jan 22 10:35:52 2016 +0100 @@ -1,13 +1,13 @@ import Ember from 'ember'; export default Ember.Controller.extend({ - queryParams: ['location', 'langue', 'discours', 'date', 'thematique', 'detailId'], + queryParams: ['location', 'langue', 'discours', 'date', 'thematique', 'detail'], location: null, langue: null, discours: null, date: [], thematique: null, - detailId: null, + detail: null, currentId: null, currentItem: Ember.computed('currentId', function() { @@ -18,8 +18,8 @@ } return this.store.findRecord('document', this.get('currentId')); }), - modalItem: Ember.computed('detailId', function() { - return this.store.findRecord('document', this.get('detailId')); + modalItem: Ember.computed('detail', function() { + return this.store.findRecord('document', this.get('detail')); }), filteredDocuments: Ember.computed('location', 'langue', 'discours', 'date', 'thematique', 'model', function() { var location = this.get('location'); @@ -82,19 +82,20 @@ play: function(item){ this.set("currentId", item.id); }, - details: function(item){ - if (Ember.$("#"+item.id).hasClass("details")){ - Ember.$("#"+item.id).toggleClass("details", false); + showMore: function(item){ + if (Ember.$("#"+item.id).hasClass("show-more")){ + Ember.$("#"+item.id).toggleClass("show-more", false); } else{ - Ember.$(".result-item").toggleClass("details", false); - Ember.$("#"+item.id).toggleClass("details", true); + Ember.$(".result-item").toggleClass("show-more", false); + Ember.$("#"+item.id).toggleClass("show-more", true); } }, toggleModal: function(item){ if (typeof(item) !== 'undefined'){ - this.set("detailId", item.id); + this.set("detail", item.id); + } else { + this.set("detail", null); } - this.set("detailId", null); } } }); diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/app.scss --- a/cms/app-client/app/styles/app.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/app.scss Fri Jan 22 10:35:52 2016 +0100 @@ -33,14 +33,13 @@ height: 600px; float: left; border-top: none; - border-right: 1px solid grey; } &-wrapper{ height: 600px; display : flex; flex-flow: column; border: none; - padding: 0 10px; + padding: 0 0 0 10px; } &-player{ flex: 0 1 auto; @@ -49,6 +48,7 @@ border-top: none; margin-bottom: 10px; background-color: #eeeeee; + padding: 0 10px; } } } diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/modal.scss --- a/cms/app-client/app/styles/modal.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/modal.scss Fri Jan 22 10:35:52 2016 +0100 @@ -11,20 +11,31 @@ .dialog { background: #fff none repeat scroll 0 0; - border: 4px solid #ccc; - border-radius: 10px; + border: 2px solid #ccc; + border-radius: 5px; box-shadow: 0 0 10px #222; - height: 300px; + min-height: 300px; + min-width: 500px; + height: auto; + width: auto; + top: 50%; left: 50%; - margin-left: -250px; - margin-top: -150px; - padding: 10px; + transform: translate(-50%, -50%); position: fixed; - top: 50%; - width: 500px; z-index: 50; } -.dialog h1{ - margin-top: 0; +.dialog-header, +.dialog-body, +.dialog-footer{ + padding: 5px 10px 0; } + +.dialog-header h2{ + margin: 0; +} + +.dialog-body b{ + display: inline-block; + min-width: 140px; +} diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/player.scss --- a/cms/app-client/app/styles/player.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/player.scss Fri Jan 22 10:35:52 2016 +0100 @@ -84,7 +84,8 @@ } .duration{ - margin: -5px auto; + margin: -30px auto 0; + padding-left: 175px; text-align: center; } diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/results.scss --- a/cms/app-client/app/styles/results.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/results.scss Fri Jan 22 10:35:52 2016 +0100 @@ -6,8 +6,7 @@ .result-header{ flex: 0 1 auto; float: left; - border-left: none; - border-top: none; + padding: 0 10px; } .result-header .filters{ @@ -44,14 +43,13 @@ float: left; overflow: auto; border: none; - padding: 10px; - margin-bottom: 10px; background: #eeeeee; + padding: 5px 10px; } .result-item { margin-bottom: 1px; - height: 64px; + min-height: 64px; cursor: pointer; padding: 5px; overflow: hidden; @@ -63,11 +61,19 @@ .result-item:hover { // box-shadow: -1px -1px 5px 0px rgba(0,0,0,0.75); } -.result-item.details { + +.result-item .hidden-elt { + display: none; +} +.result-item.show-more .hidden-elt{ + display: block; +} + +.result-item.show-more { box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); margin: 1rem 0rem; z-index: 200; - height: inherit; + // height: inherit; } .result-item .description{ @@ -89,5 +95,5 @@ } .result-item button{ - margin-top: 5px; + margin-top: 10px; } diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/tabs/carto.scss --- a/cms/app-client/app/styles/tabs/carto.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/tabs/carto.scss Fri Jan 22 10:35:52 2016 +0100 @@ -1,4 +1,5 @@ #mapdiv{ width: 100%; - height: 500px; + height: 600px; + background: #eeeeee; } diff -r 62984937a062 -r f7ab931581af cms/app-client/app/styles/tabs/langues.scss --- a/cms/app-client/app/styles/tabs/langues.scss Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/styles/tabs/langues.scss Fri Jan 22 10:35:52 2016 +0100 @@ -1,5 +1,5 @@ #chart_div { - width: 560px; + width: 100%; height: 540px; background: #ddd; } diff -r 62984937a062 -r f7ab931581af cms/app-client/app/templates/application.hbs --- a/cms/app-client/app/templates/application.hbs Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/templates/application.hbs Fri Jan 22 10:35:52 2016 +0100 @@ -16,16 +16,20 @@
Description: {{modalItem.description}}
-Interviewer: {{modalItem.interviewer}}
-Type de Discours: {{modalItem.type}}
-Localisation: {{modalItem.spatial}}
-Langue: {{modalItem.language}}
-Date de Creation: {{modalItem.created}}
- +Titre {{modalItem.title}}
+Langue {{modalItem.language}}
+Enregistré le {{modalItem.modified}}
+Interviewer {{modalItem.publishers}}
+Description {{modalItem.description}}
+Type de Discours {{modalItem.type}}
+Localisation {{modalItem.spatial}}
+- Title: {{ currentItem.title }} -
-- Description: {{ currentItem.description }} -
+{{ currentItem.title }}
+{{ currentItem.language }}
diff -r 62984937a062 -r f7ab931581af cms/app-client/app/templates/results.hbs --- a/cms/app-client/app/templates/results.hbs Thu Jan 21 21:07:02 2016 +0100 +++ b/cms/app-client/app/templates/results.hbs Fri Jan 22 10:35:52 2016 +0100 @@ -1,5 +1,4 @@Filtres: {{#if location}} @@ -23,13 +22,15 @@