friendica/view/theme/frio/templates/event.tpl

28 lines
1.2 KiB
Smarty
Raw Normal View History

<script language="javascript" type="text/javascript"
src="{{$baseurl}}/view/theme/frio/js/event_edit.js"></script>
{{foreach $events as $event}}
<div class="event-wrapper">
<div class="event">
<div class="media">
<div class="event-owner media-left">
{{if $event.item.author_name}}
<a href="{{$event.item.author_link}}" ><img src="{{$event.item.author_avatar}}" /></a>
<a href="{{$event.item.author_link}}" >{{$event.item.author_name}}</a>
{{/if}}
</div>
<div class="media-body">
{{$event.html}}
</div>
</div>
<div class="event-buttons pull-right">
2017-03-16 20:15:25 +01:00
{{if $event.edit}}<a onclick="eventEdit('{{$event.edit.0}}')" title="{{$event.edit.1}}" class="edit-event-link btn"><i class="fa fa-pencil" aria-hidden="true"></i></a>{{/if}}
{{if $event.drop}}<a href="{{$event.drop.0}}" onclick="return confirmDelete();" title="{{$event.drop.1}}" class="drop-event-link btn"><i class="fa fa-trash-o" aria-hidden="true"></i></a>{{/if}}
{{if $event.item.plink}}<a href="{{$event.plink.0}}" title="{{$event.plink.1}}" class="plink-event-link btn "><i class="fa fa-external-link" aria-hidden="true"></i></a>{{/if}}
</div>
<div class="clear"></div>
</div>
</div>
{{/foreach}}