Also, a few further adjustments to patch formatting.
SELECT id, name FROM patch_comment_type ORDER BY id
EOM
$r->add_control('message_id', 'text', 'Message-ID', 'maxlength' => 255);
- $r->add_control('content', 'text', 'Content', 'required' => 1);
+ $r->add_control('content', 'textarea', 'Content', 'required' => 1);
my %value = $r->initialize_controls($d);
# Handle commit.
<td class='colLast'> </td>
[% ELSE %]
<td class='colFirstT'><a href='/action/patch_view?id=[% p.id %]'>[% p.name | htmlsafe %]</a>
- <div style='padding-left: 2em;'>
+ <div style='padding-left: 1em'>
[% FOREACH c = p.comment_list %]
- <div><span class='txtAttribution'>[% c.creator | html %] at [% c.creation_time | html %]:</span> [% IF c.message_id != '' %]<a href='http://archives.postgresql.org/message-id/[% c.message_id | htmlsafe %]'>[% END %][% c.patch_comment_type | htmlsafe %][% IF c.message_id != '' %]</a>[% END %] - [% c.content | html %]</div>
+ <div style='margin-left: 1em; text-indent: -1em'><span class='txtAttribution'>[% IF c.message_id != '' %]<a href='http://archives.postgresql.org/message-id/[% c.message_id | htmlsafe %]'>[% END %][% c.patch_comment_type | htmlsafe %][% IF c.message_id != '' %]</a>[% END %] by [% c.creator | html %] on [% c.creation_time | html %]:</span> [% c.content | html | html_line_break %]</div>
[% END %]
</div>
</td>
<td class='colFirstT'>Comments</td>
<td class='colLastT'>
[% FOREACH c = patch_comment_list %]
- <div>[% IF c.message_id != '' %]<a href='http://archives.postgresql.org/message-id/[% c.message_id | htmlsafe %]'>[% END %][% c.patch_comment_type | htmlsafe %][% IF c.message_id != '' %]</a>[% END %]: [% c.content | html %] ([% c.creator | html %]: [% c.creation_time | html %])[% IF authenticate.is_administrator || authenticate.userid == c.creator %] - <a href='/action/patch_comment_form?id=[% c.id %]'>Edit</a> - <a href='/action/patch_comment_delete?id=[% c.id %]' onClick='return confirm("Are you sure you want to delete this comment?");'>Delete</a>[% END %]</div>
+ <div style='margin-left: 1em; text-indent: -1em'><span class='txtAttribution'>[% IF c.message_id != '' %]<a href='http://archives.postgresql.org/message-id/[% c.message_id | htmlsafe %]'>[% END %][% c.patch_comment_type | htmlsafe %][% IF c.message_id != '' %]</a>[% END %] by [% c.creator | html %] on [% c.creation_time | html %]:</span> [% c.content | html | html_line_break %] [% IF authenticate.is_administrator || authenticate.userid == c.creator %] - <a href='/action/patch_comment_form?id=[% c.id %]'>Edit</a> - <a href='/action/patch_comment_delete?id=[% c.id %]' onClick='return confirm("Are you sure you want to delete this comment?");'>Delete</a>[% END %]</div>
[% END %]
[% IF patch_comment_list.size == 0 %]<div>No comments.</div>[% END %]
</td>