fixed teams box to only show when content is available to show
This commit is contained in:
parent
a9aff9d637
commit
b6d97c9118
1 changed files with 49 additions and 48 deletions
|
@ -123,6 +123,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% available_teams as available_teams %}
|
||||||
|
{% if user.memberships.exists or available_teams %}
|
||||||
<div class="dashboard-panel">
|
<div class="dashboard-panel">
|
||||||
<div class="dashboard-panel-header">
|
<div class="dashboard-panel-header">
|
||||||
<i class="icon-group"></i>
|
<i class="icon-group"></i>
|
||||||
|
@ -151,7 +153,6 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% available_teams as available_teams %}
|
|
||||||
{% if available_teams %}
|
{% if available_teams %}
|
||||||
<h4>Available Teams</h4>
|
<h4>Available Teams</h4>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
|
@ -165,10 +166,10 @@
|
||||||
<span class="label">{{ team.get_access_display }}</span>
|
<span class="label">{{ team.get_access_display }}</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue