summaryrefslogtreecommitdiffstats
path: root/webapp/templates/publish.html
blob: d4303efaa5b15d06cbb23d220343690101a7df01 (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
{%extends "change_base.html"%}
{%block title1%}Publish+Mail -{%endblock%}
{%block change_body%}
<h2>Publish + Mail Draft Comments</h2>

<div>
  <form action="{%url codereview.views.publish change.key.id%}"
        method="post" id="publish-form">
  <table>
  {{form}}
  <tr>
    <td></td>
    <td>
  {%ifequal user change.owner%}
      <input type="submit" value="Publish Comments">
  {%else%}
      <input type="submit" value="Publish Comments + Approvals">
  {%endifequal%}
     </td>
  </tr>
  </table>
  </form>

  <a id="resizer" style="display:none;cursor:pointer">
  <img src="/static/zippyplus.gif"></a>
  <script language="JavaScript" type="text/javascript"><!--
  M_addTextResizer_(document.getElementById("publish-form"));
  --></script>

</div>
{%if preview%}
<div style="margin-top: 3em;">
  <h3>Unpublished Drafts:</h3>
  <pre class="description">{{preview|wordwrap:"80"|urlize}}</pre>
</div>
{%endif%}
<div style="clear:both"></div>

{%endblock%}