update-backgournd

merge-requests/2/head
王宇洋 3 years ago
commit dfbda1e196

@ -27,6 +27,8 @@
<meta name="csrf-token" content="{{ csrf_token() }}">
<script type="application/javascript" src="{{ url_for('static',filename='js/jquery-3.6.0.js') }}"></script>
<script src="{{ url_for('static',filename='js/starback.js') }}"></script>
<script src="{{ url_for('static',filename='js/click_heart.js') }}"></script>
<script src="{{ url_for('static',filename='js/fireworks.js') }}"></script>
{% endblock %}
@ -38,6 +40,7 @@
{% block body %}
<div class="background">
<canvas id="canvas"></canvas>
</div>

@ -1,3 +1,4 @@
{% extends "base.html" %}
{% import "_macros.html" as macros %}
{% block title %}Student Exchange Forum of BJUT{% endblock %}

@ -12,6 +12,8 @@
<h3 class="panel-title" style="display:inline;">Followers</h3>
{% elif notice.action == ' has liked your posting ' %}
<h3 class="panel-title" style="display:inline;">Likers</h3>
{% elif notice.action == ' has invited ' %}
<h3 class="panel-title" style="display:inline;">Invite</h3>
{% else %}
<h3 class="panel-title" style="display:inline;">Comments</h3>
{% endif %}
@ -31,6 +33,17 @@
</a>
{% endif %}
{% if notice.action == ' has invited ' %}
<h5 style="float:left;display: inline"> {{ notice.action }} </h5>
<a href="{{ url_for('.user', username = current_user.username) }}" style="float:left;display: inline;margin-left: 4px">
<h5> you </h5>
</a>
<h5 style="float:left;display: inline">&nbspto answer </h5>
<a href="{{ url_for('.view_question', question_id = notice.object_id) }}" style="float:left;display: inline;margin-left: 4px">
<h5>{{ notice.object }}</h5>
</a>
{% else %}
<h5 style="float:left;display: inline"> {{ notice.action }} </h5>
{% if notice.object_id %}
@ -42,6 +55,7 @@
<h5>{{ notice.object }}</h5>
</a>
{% endif %}
{% endif %}
</div>
</div>

Binary file not shown.
Loading…
Cancel
Save