diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-18 13:05:57 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-18 13:05:57 +0100 |
commit | 5bae4af14e8a8cbefefb9093be53c69311a81a20 (patch) | |
tree | b35d0b065ac68b41b816e1253d390aeb5b8b189f | |
parent | cd75b2280fc2fe953bf1158ec1b9d5fb0d43a881 (diff) | |
download | mediagoblin-5bae4af14e8a8cbefefb9093be53c69311a81a20.tar.lz mediagoblin-5bae4af14e8a8cbefefb9093be53c69311a81a20.tar.xz mediagoblin-5bae4af14e8a8cbefefb9093be53c69311a81a20.zip |
Turn comment list into a real <ul>.
Well, I like semantic html. And the list of comments, well,
is now a list: <ul>.
Using list-style:none it looks nearly the same as before.
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 0d1177b8..29d7874c 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -115,15 +115,17 @@ </div> </form> {% endif %} + <ul style="list-style:none"> {% for comment in comments %} {% set comment_author = comment.get_author %} - {% if pagination.active_id == comment.id %} - <div class="comment_wrapper comment_active" id="comment-{{ comment.id }}"> - <a name="comment" id="comment"></a> - {% else %} - <div class="comment_wrapper" id="comment-{{ comment.id }}"> - {% endif %} - <div class="comment_author"> + <li id="comment-{{ comment.id }}" + {%- if pagination.active_id == comment.id %} + class="comment_wrapper comment_active"> + <a name="comment" id="comment"></a> + {%- else %} + class="comment_wrapper"> + {%- endif %} + <div class="comment_author"> <img src="{{ request.staticdirect('/images/icon_comment.png') }}" /> <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', user = comment_author.username) }}"> @@ -142,8 +144,9 @@ {{ comment.content_html }} {%- endautoescape %} </div> - </div> + </li> {% endfor %} + </ul> {{ render_pagination(request, pagination, media.url_for_self(request.urlgen)) }} {% endif %} |