Move comments display to a template. Show a link to login page when required for posting comments.
This commit is contained in:
parent
47955dd43a
commit
77f2dcce59
2 changed files with 21 additions and 17 deletions
13
apps/bridge/comments_list.tpl
Normal file
13
apps/bridge/comments_list.tpl
Normal 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>
|
||||
% }
|
||||
% }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue