clean up comment preview

Remove actions from it, and avoid a broken title link.
master
Joey Hess 2009-01-25 18:56:47 -05:00
parent 35ea80bdfe
commit 9a5085e512
2 changed files with 9 additions and 1 deletions

View File

@ -673,6 +673,8 @@ sub previewcomment ($$$) {
template => $template);
});
$template->param(have_actions => 0);
return $template->output;
}

View File

@ -1,6 +1,12 @@
<div class="comment" id="<TMPL_VAR NAME=INLINEPAGE>">
<div class="comment-subject"><a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a></div>
<div class="comment-subject">
<TMPL_IF PERMALINK">
<a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
<TMPL_ELSE>
<TMPL_VAR TITLE>
</TMPL_IF>
</div>
<div class="inlinecontent">
<TMPL_VAR CONTENT>