team.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {% extends "base.html" %}
  2. {% block title %}{{ title }}{% endblock %}
  3. {% block content %}
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-3">
  7. <div class="model-title">{{ title }}</div>
  8. <div class="model-list">
  9. <ul class="list-group">
  10. <li class="list-group-item" id="academic_leader">
  11. <a href="{% url 'teamApp:academic_leader' %}">学院学科建设带头人</a>
  12. </li>
  13. <li class="list-group-item" id="computer_science">
  14. <a href="{% url 'teamApp:computer_science' %}">计算机系</a>
  15. </li>
  16. <li class="list-group-item" id="software_engineering">
  17. <a href="{% url 'teamApp:software_engineering' %}">软件工程系</a>
  18. </li>
  19. <li class="list-group-item" id="digital_media">
  20. <a href="{% url 'teamApp:digital_media' %}">数字媒体技术系</a>
  21. </li>
  22. <li class="list-group-item" id="iot_networking">
  23. <a href="{% url 'teamApp:iot_networking' %}">物联网与网络工程系</a>
  24. </li>
  25. <li class="list-group-item" id="math_teaching">
  26. <a href="{% url 'teamApp:math_teaching' %}">数学教研室</a>
  27. </li>
  28. <li class="list-group-item" id="party_work">
  29. <a href="{% url 'teamApp:party_work' %}">党政学工队伍</a>
  30. </li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="col-md-9">
  35. <div class="model-details-title">{{ title }}</div>
  36. <div class="row">
  37. {% for article in list %}
  38. <div class="col-md-4">
  39. <div class="thumbnail">
  40. {% if article.cover %}
  41. <img src="{{ article.cover }}" alt="{{ article.title }}" class="img-responsive" style="height:200px;object-fit:cover;">
  42. {% endif %}
  43. <div class="caption">
  44. <h4 style="text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"><a href="{%url 'article' id=article.id%}" target="_blank">{{ article.title }}</a></h4>
  45. <p style="text-align:center;color:#999;">{{ article.created_at|date:"Y-m-d" }}</p>
  46. </div>
  47. </div>
  48. </div>
  49. {% endfor %}
  50. </div>
  51. {% if list.has_other_pages %}
  52. <nav>
  53. <ul class="pagination">
  54. {% if list.has_previous %}
  55. <li><a href="?page={{ list.previous_page_number }}">&laquo;上一页</a></li>
  56. {% endif %}
  57. <li><span>第 {{ list.number }} / {{ list.paginator.num_pages }} 页</span></li>
  58. {% if list.has_next %}
  59. <li><a href="?page={{ list.next_page_number }}">下一页&raquo;</a></li>
  60. {% endif %}
  61. </ul>
  62. </nav>
  63. {% endif %}
  64. </div>
  65. </div>
  66. </div>
  67. {% endblock %}