f5bdfc1d952f

Fix comment line nesting.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 02 May 2010 16:35:51 -0400
parents ebc5f7c7a6b7
children 51b8306fa0c4
branches/tags (none)
files review/web_templates/changeset.html

Changes

--- a/review/web_templates/changeset.html	Sun May 02 16:28:22 2010 -0400
+++ b/review/web_templates/changeset.html	Sun May 02 16:35:51 2010 -0400
@@ -149,21 +149,22 @@
                                 {% else %}
                                     <tr class="{{ utils['line_type'](line['content']) }}{% if not read_only %} commentable {% endif %}">
                                         <td class="diff-line"><div class="line-data"><span class="linenumber">{{ line['number'] }}</span><span class="filename">{{ filename }}</span></div><code>{{ line['number'] }}: {{ line['content'][1:]|escape }}</code></td>
-                                        {% for comment in line['comments'] %}
-                                            <tr><td class="comment">
-                                                {{ macros.gravatar(comment, utils) }}
-                                                <div>
-                                                    <div class="author">
-                                                        <a href="mailto:{{ utils['email'](comment.author) }}">
-                                                            {{ utils['templatefilters'].person(comment.author) }}
-                                                        </a>
-                                                        said:
-                                                    </div>
-                                                    <div class="message">{{ comment.message }}</div>
+                                    </tr>
+                                        
+                                    {% for comment in line['comments'] %}
+                                        <tr><td class="comment">
+                                            {{ macros.gravatar(comment, utils) }}
+                                            <div>
+                                                <div class="author">
+                                                    <a href="mailto:{{ utils['email'](comment.author) }}">
+                                                        {{ utils['templatefilters'].person(comment.author) }}
+                                                    </a>
+                                                    said:
                                                 </div>
-                                            </td></tr>
-                                        {% endfor %}
-                                    </tr>
+                                                <div class="message">{{ comment.message }}</div>
+                                            </div>
+                                        </td></tr>
+                                    {% endfor %}
                                 {% endif %}
                             {% endfor %}
                         </tbody>