From e2411ab4c531f4eb997ce69f6db3f466d487d8f3 Mon Sep 17 00:00:00 2001 From: Joel Addison Date: Sun, 29 Sep 2019 20:15:34 +1000 Subject: [PATCH] Fix teams on dashboard Use rows and columns for team layout instead of card group. --- pinaxcon/templates/dashboard.html | 30 +++++++++---------- .../templates/symposion/teams/_team_row.html | 8 ++--- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index 804f4ee4..bf0eaed1 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -111,28 +111,26 @@ {% if user.memberships.exists %}
-
-

Your Teams

-
- {% for membership in user.memberships.all %} - {% include "symposion/teams/_team_row.html" with team=membership.team %} - {% endfor %} -
+

Your Teams

+
+
+ {% for membership in user.memberships.all %} +
+ {% include "symposion/teams/_team_row.html" with team=membership.team %}
+ {% endfor %}
{% endif %} {% if available_teams %}
-
-

Available Teams

-
-
-
- {% for team in available_teams %} - {% include "symposion/teams/_team_row.html" %} - {% endfor %} -
+

Available Teams

+
+
+ {% for team in available_teams %} +
+ {% include "symposion/teams/_team_row.html" %}
+ {% endfor %}
{% endif %}
diff --git a/pinaxcon/templates/symposion/teams/_team_row.html b/pinaxcon/templates/symposion/teams/_team_row.html index 637e492e..54b2ddad 100644 --- a/pinaxcon/templates/symposion/teams/_team_row.html +++ b/pinaxcon/templates/symposion/teams/_team_row.html @@ -1,8 +1,8 @@ -
+
+
+

{{ team.name|title }}

+
-

- {{ team.name|title }} -

{% if membership %} {{ membership.get_state_display }} {% endif %}