{{if $categories}} <!--div class="filesavetags"--> {{foreach $categories as $cat}} <span class="item-category badge badge-pill badge-danger"><i class="fa fa-folder-o"></i> {{$cat.term}} <a href="{{$cat.removelink}}" class="text-white" title="{{$remove}}"><i class="fa fa-close"></i></a></span> {{/foreach}} <!--/div--> {{/if}}