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.
This commit is contained in:
parent
cd75b2280f
commit
5bae4af14e
@ -115,14 +115,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<ul style="list-style:none">
|
||||||
{% for comment in comments %}
|
{% for comment in comments %}
|
||||||
{% set comment_author = comment.get_author %}
|
{% set comment_author = comment.get_author %}
|
||||||
{% if pagination.active_id == comment.id %}
|
<li id="comment-{{ comment.id }}"
|
||||||
<div class="comment_wrapper comment_active" id="comment-{{ comment.id }}">
|
{%- if pagination.active_id == comment.id %}
|
||||||
|
class="comment_wrapper comment_active">
|
||||||
<a name="comment" id="comment"></a>
|
<a name="comment" id="comment"></a>
|
||||||
{% else %}
|
{%- else %}
|
||||||
<div class="comment_wrapper" id="comment-{{ comment.id }}">
|
class="comment_wrapper">
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
<div class="comment_author">
|
<div class="comment_author">
|
||||||
<img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
|
<img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
|
||||||
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||||
@ -142,8 +144,9 @@
|
|||||||
{{ comment.content_html }}
|
{{ comment.content_html }}
|
||||||
{%- endautoescape %}
|
{%- endautoescape %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
{{ render_pagination(request, pagination,
|
{{ render_pagination(request, pagination,
|
||||||
media.url_for_self(request.urlgen)) }}
|
media.url_for_self(request.urlgen)) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user