Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

post_detail.html 677B

12345678910111213141516171819
  1. {% extends 'base.html' %} {% block content %}
  2. <div class="post">
  3. {% if post.published_date %}
  4. <div class="date">
  5. {{ post.published_date }}
  6. </div>
  7. {% else %}
  8. <a class="btn btn-outline-dark" href="{% url 'post_publish' pk=post.pk %}">Publish</a>
  9. {% endif %}
  10. <a class="btn btn-outline-dark" href="{% url 'post_edit' pk=post.pk %}">
  11. <span class="glyphicon glyphicon-pencil">Edit</span>
  12. </a>
  13. <a class="btn btn-outline-dark" href="{% url 'post_remove' pk=post.pk %}">
  14. <span class="glyphicon glyphicon-remove">Remove</span>
  15. </a>
  16. <h1>{{ post.title }}</h1>
  17. <p>{{ post.text|linebreaksbr }}</p>
  18. </div>
  19. {% endblock %}