mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
Fix a bug for no msgs in a new created group
This commit is contained in:
@@ -16,15 +16,15 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block main_panel %}
|
{% block main_panel %}
|
||||||
{% if group_msgs %}
|
|
||||||
<ul class="msg-list" id="msg-list">
|
<ul class="msg-list" id="msg-list">
|
||||||
|
{% if group_msgs %}
|
||||||
{% include "api2/discussions_body.html" %}
|
{% include "api2/discussions_body.html" %}
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% if group_msgs.has_next %}
|
{% if group_msgs and group_msgs.has_next %}
|
||||||
<div id="loading-icon" data-next="{{ group_msgs.next_page_number }}"><img src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /></div>
|
<div id="loading-icon" data-next="{{ group_msgs.next_page_number }}"><img src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /></div>
|
||||||
<p id="loading-error" class="error hide"></p>
|
<p id="loading-error" class="error hide"></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
|
Reference in New Issue
Block a user