blessfrey-bottle/src/views/entry.tpl

54 lines
1.4 KiB
Smarty

% rebase('frame.tpl')
% import random
<div class="content-grid">
<!--left column-->
<div class="diary-entry">
<div class="diary-title">
<h1>{{!entry[0]}}</h1>
</div>
<div class="date-line">
chimchooree ❤ {{!entry[2]}}
</div>
<div class="diary-content">
{{!entry[1]}}
</div>
<div class="diary-tags">
% if len(entry[5]) >= 1:
<div class=diary-tags>
% for t in entry[5]:
<div class="diary-tag">
% tagless = t.replace('#', '')
<a href=/diary/tag/{{tagless}}>{{t}}</a>
</div>
% end
</div>
% end
</div>
<!--<hr>-->
<div class="share-links">
</div>
<br>
</div>
% include diary-boxes.tpl
<div class="recommend">
% if len(recommends) > 0:
<div class="more"><h2>more like this</h2><hr></div>
% end
<div class="rec-box">
% if len(recommends) > 0:
<ul>
% for s in recommends:
% bullet = random.choice(['.','•','☆','★'])
<li><div class="snippet-title"><a href=/{{s[1]}} rel="nofollow">{{bullet}}&#9;{{!s[0]}}</a></div>
% end
</ul>
% end
</div>
</div>
</div>