fix bug|add invite

merge-requests/2/head
bug_creator 3 years ago
parent 22301dec8b
commit 5b451806bc

@ -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