diff --git a/application/templates/base.html b/application/templates/base.html index 3d31ecc..85e3555 100644 --- a/application/templates/base.html +++ b/application/templates/base.html @@ -60,13 +60,13 @@ - {% else %} + {% elif user.is_authenticated %} + {% endif %} diff --git a/application/templates/post_list.html b/application/templates/post_list.html index 323b35b..06c5ec2 100644 --- a/application/templates/post_list.html +++ b/application/templates/post_list.html @@ -1,42 +1,41 @@ {% extends 'base.html' %} {% block content %}
- - {% if tag %}

Artikel mit dem Tag "{{ tag.name }}"

{% endif %}
-
-

Artikleübersicht

-
+
+

Artikleübersicht

+
-
+
-{% if messages %}
- {% for message in messages %} -

{{ message }}

- {% endfor %} -
-{% endif %} -{% for post in posts %} -
-
- {{ post.published_date }} + {% if messages %} +
+ {% for message in messages %} +

{{ message }}

+ {% endfor %} +
+ {% endif %} + {% for post in posts %} +
+
+ {{ post.published_date }} +
+

+ {{ post.title }} +

+

{{ post.text|linebreaks }}

+ Tags: {% for tag in post.tags.all %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %}

+ {{ post.author }} +

+
+ {% endfor %}
-

- {{ post.title }} -

-

{{ post.text|linebreaks }}

- Tags: {% for tag in post.tags.all %} - {{ tag.name }} - {% if not forloop.last %}, {% endif %} {% endfor %}

- {{ post.author }} -

-
-{% endfor %} -
{% endblock %} \ No newline at end of file diff --git a/application/templates/registration/login.html b/application/templates/registration/login.html index 5a192c8..c183dc9 100644 --- a/application/templates/registration/login.html +++ b/application/templates/registration/login.html @@ -28,5 +28,28 @@
- +
+
+
+
+ {% for post in posts %} +
+
+ {{ post.published_date }} +
+

+ {{ post.title }} +

+

{{ post.text|linebreaks }}

+ Tags: {% for tag in post.tags.all %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %}

+ {{ post.author }} +

+
+ {% endfor %} +
+
+
+
{% endblock %} \ No newline at end of file diff --git a/application/templates/search_add.html b/application/templates/search_add.html index e9e5b82..488d72d 100644 --- a/application/templates/search_add.html +++ b/application/templates/search_add.html @@ -1,13 +1,12 @@ {% extends "base.html" %} {% block content %} {% load taggit_templatetags2_tags %} -
-