aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar momothereal <[email protected]>2018-06-23 16:31:17 -0400
committerGravatar momothereal <[email protected]>2018-06-23 16:31:17 -0400
commitd19c66ee92102a73b20f3ae4390f7c6dcbf1a70d (patch)
tree23432ac7e5c41af74d9c8951ccd990bb20959d37 /templates
parentMerge branch 'teams-user-frontend' into 'master' (diff)
Styling and title adjustments to team list
Diffstat (limited to 'templates')
-rw-r--r--templates/main/jams/team_list.html24
1 files changed, 19 insertions, 5 deletions
diff --git a/templates/main/jams/team_list.html b/templates/main/jams/team_list.html
index 87a2e189..65d58f8a 100644
--- a/templates/main/jams/team_list.html
+++ b/templates/main/jams/team_list.html
@@ -1,12 +1,25 @@
{% extends "main/base.html" %}
-{% block title %}Code Jams | My Teams{% endblock %}
-{% block og_title %}Code Jams | My Teams{% endblock %}
+
+{% block title %}
+ {% if user_teams %}
+ Code Jams | My Teams
+ {% else %}
+ Code Jams | Code Jam {{ jam.number }} Teams
+ {% endif %}
+{% endblock %}
+{% block og_title %}
+ {% if user_teams %}
+ Code Jams | My Teams
+ {% else %}
+ Code Jams | Code Jam {{ jam.number }} Teams
+ {% endif %}
+{% endblock %}
{% block page_classes %}jam-team-list{% endblock %}
{% block content %}
<div class="uk-section">
- <div class="uk-container uk-container-small">
+ <div class="uk-container">
<h1 class="uk-header uk-article-title uk-heading-divider">
{% if user_teams %}
Code Jams: My Teams
@@ -22,7 +35,7 @@
</p>
{% endif %}
{% if teams %}
- <div class="uk-flex uk-flex-row uk-flex-wrap team-list-cards">
+ <div class="uk-flex uk-flex-row uk-flex-wrap uk-flex-center team-list-cards">
{% for team in teams %}
<div class="uk-card uk-card-default uk-margin-small-bottom uk-margin-small-right uk-margin-small-top uk-margin-small-left
{% if not user_teams and logged_in and user.user_id in member_ids(team.members) %}
@@ -54,7 +67,8 @@
<i class="uk-icon fa-fw far fa-eye"></i> &nbsp;View
</a>
{% if team.repo %}
- <a href="https://gitlab.com/{{ team.repo }}" target="_blank" class="uk-button uk-button-default">
+ <a href="https://gitlab.com/{{ team.repo }}" target="_blank"
+ class="uk-button uk-button-default">
<i class="uk-icon fa-fw fab fa-gitlab"></i>
</a>
{% else %}