read.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends 'base.html' %}
  2. {% load crispy_forms_tags %}
  3. {% load static %}
  4. {% block main %}
  5. <div class="card-body">
  6. {% if page.wiki_art %}
  7. {% for item in page.wiki_art %}
  8. <p class="card-text">{{item.w_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. {% for item in page.wiki_art %}
  17. {% if item.w_description_img != "" %}
  18. <p><img src="{{item.w_description_img}}"></p>
  19. <h4> Indroduction </h4>
  20. <p>{{item.w_description|safe|urlize}}</p>
  21. <p class="card-text">{{page.p_right|safe|urlize}}</p>
  22. {% endif %}
  23. <p>
  24. <b>Nombre de Lectures </b>: {{item.w_reading}}<br>
  25. <b>Date de mise en ligne </b>: {{item.w_publdate|date:"m N Y à H:i"}}
  26. </p>
  27. <h4> Les Catégories </h4>
  28. <p>
  29. {% for cat in item.w_cat.all %}
  30. <a href="{% url 'wiki_tag' cat.cw_titre_slgify %}" class="btn btn-dark mb-2" tabindex="-1" role="button" aria-disabled="true">{{cat.cw_titre}}</a>
  31. {% endfor %}
  32. {% endfor %}
  33. </p>
  34. {% if page.retour %}
  35. <p class="card-text">
  36. <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>
  37. </p>
  38. {% endif %}
  39. </div>
  40. </div>
  41. {% endblock %}