-if($hasBookmark)
  %i.icon-bookmark(data-behavior="Bookmark" data-reference-id="#{$id_reference}" data-type="#{$type}" data-has-bookmark="1")
-else  
  %i.icon-bookmark-empty(data-behavior="Bookmark" data-reference-id="#{$id_reference}" data-type="#{$type}" data-has-bookmark="0")
