doc-subject for bnf links
authorChloe Laisne <chloe.laisne@gmail.com>
Tue, 23 Aug 2016 23:05:25 +0200
changeset 259 6af61adbd570
parent 258 12c694392e8e
child 260 64caee7ce38d
doc-subject for bnf links
cms/app-client/app/router.js
cms/app-client/app/templates/components/filter-component.hbs
--- a/cms/app-client/app/router.js	Tue Aug 23 00:32:11 2016 +0200
+++ b/cms/app-client/app/router.js	Tue Aug 23 23:05:25 2016 +0200
@@ -6,11 +6,12 @@
 });
 
 Router.map(function() {
-  this.route('tabs/langues', { path: '/langues' });
-  this.route('tabs/carto', { path: '/cartographie' });
-  this.route('tabs/thematiques', { path: '/thematiques' });
-  this.route('tabs/discours', { path: '/discours' });
-  this.route('tabs/chrono', { path: '/chronologie' });
+    this.route('tabs/langues', { path: '/' }); // Default
+    this.route('tabs/langues', { path: '/langues' });
+    this.route('tabs/carto', { path: '/cartographie' });
+    this.route('tabs/thematiques', { path: '/thematiques' });
+    this.route('tabs/discours', { path: '/discours' });
+    this.route('tabs/chrono', { path: '/chronologie' });
 });
 
 export default Router;
--- a/cms/app-client/app/templates/components/filter-component.hbs	Tue Aug 23 00:32:11 2016 +0200
+++ b/cms/app-client/app/templates/components/filter-component.hbs	Tue Aug 23 23:05:25 2016 +0200
@@ -8,7 +8,7 @@
     <li class="filter language">{{doc-language class="label" url=filter.language}}<span class="remove"{{action 'removeFilter' 'language'}}>&#10005;</span></li>
 	{{/if}}
 	{{#if filter.discourse}}
-	<li class="filter discourse">{{filter.discourse}}<span class="remove"{{action 'removeFilter' 'discourse'}}>&#10005;</span></li>
+	<li class="filter discourse">{{doc-subject url=filter.discourse}}<span class="remove"{{action 'removeFilter' 'discourse'}}>&#10005;</span></li>
 	{{/if}}
 	{{#if filter.date}}
     {{#each intervals as |interval| }}
@@ -16,7 +16,7 @@
     {{/each}}
 	{{/if}}
 	{{#if filter.theme}}
-    <li class="filter theme">{{filter.theme}}<span class="remove"{{action 'removeFilter' 'theme'}}>&#10005;</span></li>
+    <li class="filter theme">{{doc-subject url=filter.theme}}<span class="remove"{{action 'removeFilter' 'theme'}}>&#10005;</span></li>
 	{{/if}}
 </ul>
 {{else}}