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.
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n django_markdown %}
|
|
|
|
{% block title %}{% trans "Preview your comment" %}{% endblock %}
|
|
|
|
{% block maincontent %}
|
|
{% if form.errors %}
|
|
<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 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 %}
|
|
|
|
{% include "comments/form.html" %}
|
|
{% endblock %} |