aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main/jams/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main/jams/index.html')
-rw-r--r--templates/main/jams/index.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/main/jams/index.html b/templates/main/jams/index.html
index 03412311..3bd7a8c7 100644
--- a/templates/main/jams/index.html
+++ b/templates/main/jams/index.html
@@ -66,9 +66,11 @@
<i class="uk-icon fa-fw far fa-plus"></i> &nbsp;Join
</a>
{% else %}
- <a class="uk-button uk-button-primary" href="{{ url_for('main.jams.jam_team_list', jam_id=jam.number) }}">
- <i class="uk-icon fa-fw far fa-users"></i> &nbsp;Teams
- </a>
+ {% if jam.teams and jam.teams | length > 0 %}
+ <a class="uk-button uk-button-primary" href="{{ url_for('main.jams.jam_team_list', jam_id=jam.number) }}">
+ <i class="uk-icon fa-fw far fa-users"></i> &nbsp;Teams
+ </a>
+ {% endif %}
<a class="uk-button uk-button-default" target="_blank" href="{{ jam.repo }}">
<i class="uk-icon fa-fw fab fa-gitlab"></i>
</a>