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
@@ -5,22 +5,25 @@
|
||||
|
||||
{% block maincontent %}
|
||||
{% if form.errors %}
|
||||
<h2>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h2>
|
||||
<h2 class="grid_12">{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h2>
|
||||
{% else %}
|
||||
<h2>{% trans "Preview your comment" %}</h2>
|
||||
<table id="comments" class="layout">
|
||||
<tr id="c{{ comment.id }}">
|
||||
<td class="avatar">
|
||||
{% if user.get_profile.thumbnail %}<img src="{{user.get_profile.thumbnail.url}}" alt=""/>{% else %}<img src="{{STATIC_URL}}img/unknown_thumbnail.png" alt=""/>{% endif %}
|
||||
</td>
|
||||
<td class="userinfo">
|
||||
<div class="user">{{user}}</div>
|
||||
<time class="submit_date" datetime='{% now "c" %}'>{% now "d. m. Y. h:i" %}</time>
|
||||
</td>
|
||||
<td class="content">{{comment|markdown_safe}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2 class="grid_12">{% trans "Preview your comment" %}</h2>
|
||||
<article id="c{{ comment.id }}" class="comment">
|
||||
<div class="comment_picture">
|
||||
<img class="avatar" src="{% if user.get_profile.thumbnail %}
|
||||
{{user.get_profile.thumbnail.url}}
|
||||
{% else %}
|
||||
{{STATIC_URL}}img/unknown_thumbnail.png
|
||||
{% endif %}" alt=""/>
|
||||
</div>
|
||||
<header class="comment_header">
|
||||
<a href="{{ user.get_profile.get_absolute_url }}" class="user">{{comment.user}}</a>
|
||||
<div class="submit_date"><time time="{% now 'c' %}">{% now 'DATETIME_FORMAT' %}</time></div>
|
||||
</header>
|
||||
<div class="comment_text">{{comment|markdown_safe}}</div>
|
||||
</article>
|
||||
|
||||
{% endif %}
|
||||
<br class="clear" />
|
||||
|
||||
{% include "comments/form.html" %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user