added new buttons and einen artikel bearbeiten

This commit is contained in:
Esther Kleinhenz
2018-11-12 19:17:20 +01:00
parent 67e91fc5af
commit 5ec22d5ff9
17 changed files with 250 additions and 145 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
{% extends 'base.html' %}{% block content %}
{% load hitcount_tags %}
{% load hitcount_tags %}
<div class="post">
{% if post.published_date %}
@@ -10,19 +10,19 @@
<a class="btn btn-outline-dark" href="{% url 'post_publish' pk=post.pk %}">Publish</a>
{% endif %} {% if user.is_staff and user == post.author %}
<a class="btn btn-outline-dark" href="{% url 'post_edit' pk=post.pk %}">
<span class="glyphicon glyphicon-pencil">Edit</span>
<span class="glyphicon glyphicon-pencil">Bearbeiten</span>
</a>
<a class="btn btn-outline-dark" href="{% url 'post_remove' pk=post.pk %}">
<span class="glyphicon glyphicon-remove">Remove</span>
<span class="glyphicon glyphicon-remove">Löschen</span>
</a>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaksbr }}</p>
<p>
Tags:
Tags:
{% for tag in post.tags.all %}
<a href="{% url 'blog_search_list_view' %}">{{ tag.name }} </a>
{% if not forloop.last %}, {% endif %}
{% if not forloop.last %}, {% endif %}
{% endfor %}
</p>
<p>