修改禁止任何人加入的小组显示错误的问题

This commit is contained in:
sxw 2015-12-09 21:57:22 +08:00
parent eacb26eed0
commit 299d2a48e0
2 changed files with 9 additions and 5 deletions

View File

@ -28,13 +28,13 @@
{% if not joined %}
<hr>
<div>
{% if group.join_group_setting %}
{% ifequal group.join_group_setting 1 %}
<div class="form-group">
<input id="groupId" value="{{ group.id }" type="hidden">
<label>申请信息</label>
<textarea class="form-control" id="applyMessage" rows="10"></textarea>
</div>
{% endif %}
{% endifequal %}
<div class="form-group">
<button class="btn btn-primary" id="sendApplication">{% if group.join_group_setting %}申请{% endif %}加入</button>

View File

@ -34,11 +34,15 @@
<th scope="row"><a href="/group/{{ item.id }}/" target="_blank">{{ item.id }}</a></th>
<td><a href="/group/{{ item.id }}/" target="_blank">{{ item.name }}</a></td>
<td>
{% if item.join_group_setting %}
{% ifequal item.join_group_setting 1 %}
需要申请
{% else %}
{% endifequal %}
{% ifequal item.join_group_setting 0 %}
无需申请
{% endif %}
{% endifequal %}
{% ifequal item.join_group_setting 2 %}
不允许加入
{% endifequal %}
</td>
<td>{{ item.created_by }}</td>
<td>{{ item.create_time }}</td>