aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar momothereal <[email protected]>2018-06-23 11:41:12 -0400
committerGravatar momothereal <[email protected]>2018-06-23 11:41:12 -0400
commite155075acb2dce98331032a485364ebe8cdd09c8 (patch)
treefcb8ff1911ebce4e7c9b0ed564817474e4722948 /templates
parentPluck team repo in team list (diff)
Some improvements
* Don't show teams button if jam has no teams * Fix some mistakes in team repo validation
Diffstat (limited to 'templates')
-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>