1
0
Fork 0

Move suppress_tags config to template

- Add new item.suppress_tags template variable
- Fix template formatting
This commit is contained in:
Hypolite Petovan 2018-03-25 00:38:23 -04:00
commit daffc27061
12 changed files with 106 additions and 85 deletions

View file

@ -30,9 +30,11 @@
<div class="wall-item-links">
</div>
<div class="wall-item-tags">
{{if !$item.suppress_tags}}
{{foreach $item.tags as $tag}}
<span class='tag'>{{$tag}}</span>
<span class="tag">{{$tag}}</span>
{{/foreach}}
{{/if}}
</div>
</div>
<div class="wall-item-bottom">

View file

@ -67,18 +67,20 @@
<div class="wall-item-links">
</div>
<div class="wall-item-tags">
{{if !$item.suppress_tags}}
{{foreach $item.hashtags as $tag}}
<span class='tag'>{{$tag}}</span>
<span class="tag">{{$tag}}</span>
{{/foreach}}
{{foreach $item.mentions as $tag}}
<span class='mention'>{{$tag}}</span>
<span class="mention">{{$tag}}</span>
{{/foreach}}
{{foreach $item.folders as $cat}}
<span class='folder p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
{{foreach $item.categories as $cat}}
<span class='category p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
{{foreach $item.folders as $cat}}
<span class="folder p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
{{foreach $item.categories as $cat}}
<span class="category p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
{{/if}}
</div>
</div>
<div class="wall-item-bottom">