Move comments display to a template. Show a link to login page when required for posting comments.

This commit is contained in:
Uriel 2009-02-16 03:46:21 +00:00
parent 47955dd43a
commit 77f2dcce59
2 changed files with 21 additions and 17 deletions

View file

@ -0,0 +1,13 @@
<hr />
<h2>Comments</h2>
% for(c in `{ls $comments_dir/}) {
% if(test -s $c/body) {
<div class="comment">
<h5>By: <i>%(`{cat $c/user}%)</i></b> (%(`{cat $c/posted}%))
</h5>
% cat $c/body | escape_html | sed 's,$,<br />,'
<hr /></div>
% }
% }