{% extends 'master.html' %} {% load static %} {% block content %}
{% if request.user.is_authenticated %}
推荐新闻
    {% if not recommend %} 还没有能推荐的新闻哦 {% endif %} {% if recommend %} {% for article in recommend %}
  • {{ article.title }}
  • {% endfor %} {% endif %}
浏览记录
    {% if not request.user.viewed %} 还没有浏览过新闻哦 {% endif %} {% if request.user.viewed %} {% for article in viewed %}
  • {{ article.title }}
  • {% endfor %} {% endif %}
{% endif %}

论文专利

{% for article in type1 %} {% endfor %}
{{ article.title }} {{ article.date }}

校园活动

{% for article in type2 %} {% endfor %}
{{ article.title }} {{ article.date }}

大赛通知

{% for article in type3 %} {% endfor %}
{{ article.title }} {{ article.date }}

工作安排

{% for article in type4 %} {% endfor %}
{{ article.title }} {{ article.date }}

讲座会议

{% for article in type5 %} {% endfor %}
{{ article.title }} {{ article.date }}
{% endblock %}