Code bereinigt und Seitenstruktur verfeinert.
Das Layout der einzelnen Seiten ist jetzt einheitlich: - jumbotron - Naviation der Unterseiten (wenn Vorhanden) - Hauptinhalt - Pager (bei mehrseiteigen Ergebnissen) - Kommentare (wenn Kommentare möglich) - Buttonleiste zum bearbeiten (wen erlaubt) * Viele kleine HTML5 Fehler wurden bereinigt * CSS Dateien wurden angepasst * Nicht mehr benötigte Dateien in STATIC gelöscht * externe Pakete aus utlis/ entfernt, als Vobreitung für virtenv Nutzung.
This commit is contained in:
committed by
Christian Berg
parent
86a0db050d
commit
34f5bdca58
@@ -1,15 +1,18 @@
|
||||
{% load i18n django_markdown %}
|
||||
<table id="comments" class="layout">
|
||||
<h2 class="grid_12" id="comments">{% trans 'Comments' %}</h2>
|
||||
{% for comment in comment_list %}
|
||||
<tr id="c{{ comment.id }}">
|
||||
<td class="avatar">
|
||||
{% if comment.user.get_profile.thumbnail %}<img src="{{comment.user.get_profile.thumbnail.url}}" alt=""/>{% else %}<img src="{{STATIC_URL}}img/unknown_thumbnail.png" alt=""/>{% endif %}
|
||||
</td>
|
||||
<td class="userinfo">
|
||||
<a href="{{ comment.user.get_profile.get_absolute_url }}" class="user">{{comment.user}}</a>
|
||||
<div class="submit_date"><time time="{{comment.submit_date|time:'c'}}">{{comment.submit_date|timesince}}</time></div>
|
||||
</td>
|
||||
<td class="content">{{comment.comment|markdown_safe}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<article id="c{{ comment.id }}" class="comment">
|
||||
<div class="comment_picture">
|
||||
<img class="avatar" src="{% if comment.user.get_profile.thumbnail %}
|
||||
{{comment.user.get_profile.thumbnail.url}}
|
||||
{% else %}
|
||||
{{STATIC_URL}}img/unknown_thumbnail.png
|
||||
{% endif %}" alt=""/>
|
||||
</div>
|
||||
<header class="comment_header">
|
||||
<h3><a href="{{ comment.user.get_profile.get_absolute_url }}" class="user">{{comment.user}}</a></h3>
|
||||
<time datetime="{{comment.submit_date|date:'Y-m-d'}}" class="submit_date">{{comment.submit_date|timesince}}</time>
|
||||
</header>
|
||||
<div class="comment_text">{{comment.comment|markdown_safe}}</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user