read.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% extends 'base.html' %}
  2. {% load crispy_forms_tags %}
  3. {% load static %}
  4. {% block main %}
  5. <div class="card-body">
  6. {% if page.blog_art %}
  7. {% for item in page.blog_art %}
  8. <p class="card-text">{{item.b_contenu|safe}}</p>
  9. {% endfor %}
  10. {% endif %}
  11. </div>
  12. {% endblock %}
  13. {% block right_panel %}
  14. <div class="card" style="background-color: rgba(250,250,250,0.88);" >
  15. <div class="card-body">
  16. <p class="card-text">{{page.p_right|safe}}</p>
  17. {% for item in page.blog_art %}
  18. {% if item.b_description_img != "" %}
  19. <p><img src="{{item.b_description_img}}"></p>
  20. <p>{{item.b_description|safe}}</p>
  21. {% endif %}
  22. <p>
  23. <b>Nombre de Lectures </b>: {{item.b_reading}}<br>
  24. <b>Date de mise en ligne </b>: {{item.b_publdate|date:"m N Y à H:i"}}
  25. </p>
  26. <h5> Les Catégories </h5>
  27. <p>
  28. {% for cat in item.b_cat.all %}
  29. <a href="{% url 'blog_tag' cat.cb_titre_slgify %}" class="btn btn-dark" tabindex="-1" role="button" aria-disabled="true">{{cat.cb_titre}}</a>
  30. {% endfor %}
  31. {% endfor %}
  32. </p>
  33. <hr>
  34. <a href="{% url page.retour %}" class="btn btn-dark mb-2" tabindex="-1" role="button" aria-disabled="true"><i class="fas fa-undo-alt"></i> Retour</a>
  35. </div>
  36. </div>
  37. {% endblock %}