~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/templates/bugcomment-macros.pt

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
<div
50
50
  xmlns:tal="http://xml.zope.org/namespaces/tal"
51
51
  xmlns:metal="http://xml.zope.org/namespaces/metal"
52
 
  metal:define-macro="break">
53
 
  <div id="comments-container"></div>
54
 
  <div class="boardComment comments-hidden-message" style="border-bottom: 0">
55
 
    <div class="boardCommentDetails">
56
 
      <table>
57
 
        <tbody>
58
 
          <tr>
59
 
            <td>
60
 
              <span class="sprite arrowRight">&nbsp;</span>
61
 
              <span tal:replace="num_hidden">42</span> comments hidden
62
 
              <span id="more-comments-spinner" class="hidden">
63
 
                Loading more comments
64
 
                <img src="/@@/spinner" />
65
 
              </span>
66
 
            </td>
 
52
  metal:define-macro="break"
 
53
  tal:attributes="class string:boardComment"
 
54
  style="border-bottom: 0">
 
55
  <div class="boardCommentDetails">
 
56
    <table>
 
57
      <tbody>
 
58
        <tr>
 
59
          <td>
 
60
            <span class="sprite arrowRight">&nbsp;</span>
 
61
            <span tal:replace="num_hidden">42</span> comments hidden
 
62
          </td>
67
63
 
68
 
            <td class="bug-comment-index">
69
 
              <a href="?comments=all"
70
 
                 id="show-comments-link"
71
 
                 class="show-comments-link sprite retry"
72
 
                 style="white-space: nowrap">
73
 
                 view all <span
74
 
                 tal:replace="view/total_comments"
75
 
                 /> comments</a>
76
 
            </td>
77
 
          </tr>
78
 
        </tbody>
79
 
      </table>
80
 
    </div>
 
64
          <td class="bug-comment-index">
 
65
            <a href="?comments=all"
 
66
               class="sprite retry"
 
67
               style="white-space: nowrap">
 
68
               view all <span
 
69
               tal:replace="view/total_comments"
 
70
               /> comments</a>
 
71
          </td>
 
72
        </tr>
 
73
      </tbody>
 
74
    </table>
81
75
  </div>
82
76
</div>
83
77
 
84
 
<div
85
 
  xmlns:tal="http://xml.zope.org/namespaces/tal"
86
 
  xmlns:metal="http://xml.zope.org/namespaces/metal"
87
 
  metal:define-macro="comment-form">
88
 
  <div tal:define="comment_form nocall:context/@@+addcomment-form;
89
 
       dummy comment_form/initialize" id="add-comment-form">
90
 
    <div tal:condition="context/bug/duplicateof"
91
 
        class="warning message"
92
 
        id="warning-comment-on-duplicate">
93
 
      Remember, this bug report is a duplicate of
94
 
      <a  tal:define="duplicateof context/bug/duplicateof"
95
 
          tal:condition="duplicateof/required:launchpad.View"
96
 
          tal:attributes="href duplicateof/fmt:url; title
97
 
             duplicateof/title; style string:margin-right: 4px;
98
 
             id string:duplicate-of-warning-link;"
99
 
          tal:content="string:bug #${duplicateof/id}."
100
 
      >bug #42</a>
101
 
      <span
102
 
          tal:define="duplicateof context/bug/duplicateof"
103
 
          tal:condition="not:duplicateof/required:launchpad.View"
104
 
          tal:replace="string: a private bug." />
105
 
      Comment here only if you think the duplicate status is wrong.
106
 
    </div>
107
 
    <h2>Add comment</h2>
108
 
    <form action="+addcomment"
109
 
          method="post"
110
 
          enctype="multipart/form-data"
111
 
          accept-charset="UTF-8">
112
 
      <tal:comment-input
113
 
          replace="structure comment_form/widgets/comment" />
114
 
      <div class="actions"
115
 
          tal:content="structure
116
 
          comment_form/actions/field.actions.save/render" />
117
 
    </form>
118
 
    <script type="text/javascript">
119
 
      LPS.use('lp.app.comment', function(Y) {
120
 
          var comment = new Y.lp.app.comment.Comment();
121
 
          comment.render();
122
 
      });
123
 
    </script>
124
 
  </div>
125
 
  <tal:attachment-link
126
 
      define="add_attachment_link context_menu/addcomment"
127
 
      replace="structure add_attachment_link/render" />
128
 
  </div>
129
78
</tal:root>