Commits

David Chambers committed 12b0088

Added `id` attribute to comment template to facilitate hyperlinking.

Comments (0)

Files changed (2)

static/default.css

             #main .metadata li:before           { display: none; }
               .metadata ol a                    { background: rgb(232, 235, 238) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAYCAYAAADDLGwtAAAAZklEQVQoz6XTUQ7AIAgD0B6dm3G07mckOkFo5q8vGKGA/XGShgYZSZAEJugGN1TBA2UwRV9YohVeUUDvUMCsmr0FPO5RoKMTGfRsjL9g+fT4M+P2jBsujVAKhRQzKbjSKkjLta3rA9WXOvoDgCOyAAAAAElFTkSuQmCC) no-repeat left; padding: 0 0.5em 0 1.5em; }
         #comments                               { margin: 1em 0 0; }
-        .comment                                { position: relative; margin: 3em 0 0; font-size: 0.875em; line-height: 1.5em; }
-          .comment>div                          { margin: 0 200px 0 0; min-height: 3em; }
-          .comment>footer                       { position: absolute; right: 0; top: 0; width: 132px; padding: 0 0 0 68px; }
+        .comment                                { position: relative; margin: 1.5em 0 0; padding: 1.5em 0 0; font-size: 0.875em; line-height: 1.5em; }
+          .comment>div                          { margin: -1.5em 200px 0 0; min-height: 3em; }
+          .comment>footer                       { position: absolute; right: 0; top: 1.5em; width: 132px; padding: 0 0 0 68px; }
             .comment>footer img                 { position: absolute; left: 24px; top: 2px; border: 1px solid rgb(209, 215, 221); padding: 1px; }
               .comment>footer span              { display: block; color: #666; text-rendering: optimizeLegibility; }
               .comment>footer span+span         { color: #999; }

templates/comment.dhtml

 {% load mango_extras %}
-					<article class="{% if comment|is_author_comment %}author {% endif %}comment">
+					<article class="{% if comment|is_author_comment %}author {% endif %}comment" id="{{ comment.id }}">
 						<div>
 							{{ comment.html }}
 						</div>