summaryrefslogtreecommitdiffstats
path: root/webapp/templates/patchset_patchrow.html
blob: 422aa5060e4aae8e57162f7a3385e8e65cd10a76 (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
<tr>
  <td>{%if patch.status%}{{patch.status}}{%endif%}</td>
  <td>
    <a class="noul"
       href="{%url codereview.views.diff change.key.id,patch.patchset.key.id,patch.id%}"
      >{{patch.filename}}
    </a>
  </td>
  <td>{%comment%}{%for other in patchsets%}{%ifnotequal other patchset%}{%for opatch in other.patches%}{%ifequal opatch.filename patch.filename%}{%ifnotequal opatch.patch_hash patch.patch_hash%}
  <a href="/{{change.key.id}}/diff2/{{other.key.id}}:{{patchset.key.id}}/{{patch.id}}" title="Delta from patch set {{forloop.parentloop.counter}}">{{forloop.parentloop.counter}}</a>&nbsp;{%endifnotequal%}{%endifequal%}{%endfor%}{%endifnotequal%}{%endfor%}
  {%endcomment%}
  </td>
  <td>
    {%if patch.num_comments or patch.num_drafts%}<b>{%endif%}
      {{patch.num_comments}} comment{{patch.num_comments|pluralize}}
      {%if patch.num_drafts%}
      <span style="color:red">+
        {{patch.num_drafts}} draft{{patch.num_drafts|pluralize}}
      </span>
    {%endif%}
    {%if patch.num_comments or patch.num_drafts%}</b>{%endif%}
  </td>
  <td>
    <a href="{%url codereview.views.patch change.key.id,patch.patchset.key.id,patch.id%}">
      View
    </a>
  </td>
  <td>
    <a href="{%url codereview.views.download_patch change.key.id,patch.patchset.key.id,patch.id%}"
       title="Download patch for {{patch.filename}}">
      Download
    </a>
  </td>
</tr>