summaryrefslogtreecommitdiff
path: root/template/patch_view.tt2
blob: 26e8b656da96a33518a56e1e8181979bfbb3c1c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<p></p>

<div class='tblBasic'>
<table cellspacing='0' class='tblBasicGrey'>
<tr class='firstrow'>
  <td class='colFirst'>CommitFest</td>
  <td class='colLast'><a href='/https/git.postgresql.org/action/commitfest_view?id=[% d.commitfest_id %]'>[% d.commitfest | htmlsafe %]</a></td>
</tr>
<tr>
  <td class='colFirst'>Topic</td>
  <td class='colLast'>[% d.commitfest_topic | htmlsafe %]</td>
</tr>
<tr>
  <td class='colFirst'>Patch Status</td>
  <td class='colLast'>[% d.patch_status | htmlsafe %]</td>
</tr>
<tr>
  <td class='colFirst'>Author</td>
  <td class='colLast'>[% d.author | htmlsafe %]</td>
</tr>
<tr>
  <td class='colFirst'>Reviewers</td>
  <td class='colLast'>[% IF d.reviewers != '' %][% d.reviewers | htmlsafe %][% ELSE %]<span class='controlerror'>Nobody</span>[% END %]</td>
</tr>
<tr>
  <td class='colFirst'>Committer</td>
  <td class='colLast'>[% IF d.committer != '' %][% d.committer | htmlsafe %][% ELSE %]<span class='controlerror'>Nobody</span>[% END %]</td>
</tr>
<tr>
  <td class='colFirst'>Close Date</td>
  <td class='colLast'>[% IF d.date_closed != '' %][% d.date_closed | htmlsafe %][% ELSE %](None)[% END %]</td>
</tr>
<tr class='lastrow'>
  <td class='colFirstT'>Comments</td>
  <td class='colLastT'>
    [% FOREACH c = patch_comment_list %]
    <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='/https/git.postgresql.org/action/patch_comment_form?id=[% c.id %]'>Edit</a> - <a href='/https/git.postgresql.org/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>
</tr>
</table>
</div>

<h2 style='margin: 0px'>Add Comment</h2>
[% IF authenticate %]
[% INCLUDE patch_comment_form.tt2 is_included='1' %]
[% ELSE %]
<p>Please
<a href='/https/git.postgresql.org/action/login?uri=/action/patch_view?id=[% d.id %]'>log in</a>
to comment on this patch.</p>
[% END %]