[% END %]
<div class="comment">
<form action="javascript:post_comment()" method="post">
- Name: <input id="commentname" name="name" /> <hr>
+ [% IF request.user %]
+ <input id="commentname" name="name" type="hidden" value="[% request.user |html %]"/>
+ [% ELSE %]
+ Name: <input id="commentname" name="name" />
+ <hr>
+ [% END %]
<textarea id="newcomment" name="content" cols="60" rows="5"/></textarea>
<p>
<input type="submit" name="Comment on this picture" value="Comment on this picture">