order_call.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {% for article in articles %}
  2. <div class="row col-12">
  3. <!--标题图-->
  4. {% if article.avatar %}
  5. <div class="col-5" data-aos="fade-up" data-aos-delay="100">
  6. <img src="{{ article.avatar.url }}"
  7. alt="avatar"
  8. style="max-width: 100%; border-radius: 20px;"
  9. >
  10. </div>
  11. {% endif %}
  12. <div class="col-7">
  13. {% if article.column %}
  14. <button type="button"
  15. onclick="window.open('{% url 'article:article_list' %}?search={{ search }}&tag={{ tag }}&column={{ article.column.id }}')"
  16. class="btn btn-sm mb-2 column_button"
  17. data-aos="fade-up" data-aos-delay="120">
  18. {{ article.column }}
  19. </button>
  20. {% endif %}
  21. <!--标签-->
  22. <span>
  23. {% for tag in article.tags.all %}
  24. <a href="{% url 'article:article_list' %}?tag={{ tag }}&column={{ column }}"
  25. class="badge badge-secondary" data-aos="fade-up" data-aos-delay="120">
  26. {{ tag }}
  27. </a>
  28. {% endfor %}
  29. </span>
  30. <!--标题-->
  31. <h4 data-aos="fade-up" data-aos-delay="140">
  32. <b>
  33. <a id="post-preview" href="{% url 'article:article_detail' article.id %}">
  34. {{ article.title }}
  35. </a>
  36. </b>
  37. </h4>
  38. <!--摘要-->
  39. <div data-aos="fade-up" data-aos-delay="160">
  40. <p style="color: gray;">
  41. {{ article.summary|slice:'50' }}...
  42. </p>
  43. </div>
  44. <!--注脚-->
  45. <p style="color: #868e96;font-style: italic;font-family: 'Lora', 'Times New Roman', serif;"
  46. data-aos="fade-up" data-aos-delay="180">
  47. <!--附加消息-->
  48. <span>
  49. <i class="fas fa-eye"></i>
  50. {{ article.total_views }} viewd&nbsp;&nbsp;&nbsp;
  51. </span>
  52. <span>
  53. <i class="fas fa-comments"></i>
  54. Posted at {{ article.created|date:'Y-m-d' }}&nbsp;&nbsp;&nbsp;
  55. </span>
  56. <span>
  57. <i class="fas fa-clock"></i>
  58. Update at {{ article.updated|date:'Y-m-d' }}
  59. </span>
  60. </p>
  61. <hr data-aos="fade-up" data-aos-delay="180">
  62. </div>
  63. <hr style="width:100%;" data-aos="fade-up" data-aos-delay="180"/>
  64. </div>
  65. {% endfor %}