WEB/Sammlung/Praktikum/4/templates/list_post.tpl

27 lines
953 B
Smarty
Raw Normal View History

2016-10-16 21:53:15 +02:00
@var rows_o = context['data'];@
@var order = context['indices'];@
@for var key in order@
@if rows_o[order[key]]["deleted"]@
<li id="deleted">
@else@
<li id="p#order[key]#">
@endif@
<div class="clPostContainer">
<div class="clMetaDataContainer">
<div class="clOwner">#rows_o[order[key]]["owner"]#</div>
<div class="clTime">#rows_o[order[key]]["time"][2]#.#rows_o[order[key]]["time"][1]#.#rows_o[order[key]]["time"][0]#<br>
#rows_o[order[key]]["time"][3]#:#rows_o[order[key]]["time"][4]#</div>
</div>
<div class="clPostDataContainer">
@if rows_o[order[key]]["deleted"]@
<div class="clTitle">&gt;&gt;Gel&ouml;scht&lt;&lt;</div>
<div class="clText">&gt;&gt;Gel&ouml;scht&lt;&lt;</div>
@else@
<div class="clTitle">#rows_o[order[key]]["title"]#</div>
<div class="clText">#rows_o[order[key]]["text"]#</div>
@endif@
</div>
</div>
</li>
@endfor@