cms/app-client/app/templates/components/notice-component.hbs
changeset 488 0161e028afb7
parent 447 38d5789e30d0
child 492 acecbffac2c4
--- a/cms/app-client/app/templates/components/notice-component.hbs	Tue Jan 17 13:30:54 2017 +0100
+++ b/cms/app-client/app/templates/components/notice-component.hbs	Tue Jan 17 18:57:25 2017 +0100
@@ -1,5 +1,5 @@
 <h2>{{ item.title }}</h2>
-<h5><a href={{abs-url-for "document" item.id}} class="notice-permalink" target="_blank">permalien</a></h5>
+<h5>{{#if item.id }}<a href={{abs-url-for "document" item.id}} class="notice-permalink" target="_blank">permalien</a>{{/if}}</h5>
 <table>
   <tr>
     <td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td>