[damned-lies/develop: 1/4] fix: use row and col in lang/module lists
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/develop: 1/4] fix: use row and col in lang/module lists
- Date: Thu, 6 Oct 2022 12:43:32 +0000 (UTC)
commit dcd645d42af4cb43bc44a6a055406e62781f8a1e
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Thu Oct 6 13:50:55 2022 +0200
fix: use row and col in lang/module lists
languages/templates/languages/language_list.html | 4 +--
teams/templates/teams/team_list.html | 46 ++++++++++++------------
templates/module_list.html | 4 +--
3 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/languages/templates/languages/language_list.html
b/languages/templates/languages/language_list.html
index 7d7cac07..06ee896d 100644
--- a/languages/templates/languages/language_list.html
+++ b/languages/templates/languages/language_list.html
@@ -12,10 +12,10 @@
{% endblocktrans %}</p>
{% load list_to_columns %}
-<div class="column_container">
+<div class="row">
{% list_to_columns languages as columns 3 %}
{% for col in columns %}
- <div class="column_box col-xs-12 col-sm-4 no-padding">
+ <div class="column_box col-xs-12 col-sm-4 col-4 p-0 m-0">
<ul>
{% for lang in col %}
<li>
diff --git a/teams/templates/teams/team_list.html b/teams/templates/teams/team_list.html
index 3708ac08..6d2cab48 100644
--- a/teams/templates/teams/team_list.html
+++ b/teams/templates/teams/team_list.html
@@ -11,29 +11,29 @@
{% if teams %}
<p>{% trans "Select a team below to see more information about it:" %}</p>
-{% load list_to_columns %}
-<div class="column_container">
- {% list_to_columns teams as columns 2 %}
- {% for col in columns %}
- <div class="column_box col-xs-12 col-sm-6 no-padding">
- <ul>
- {% for team in col %}
- <li style="font-size: 120%;">
- <a href="{{ team.get_absolute_url }}">{{ team.translated_name }}</a>
- —
- <span style="font-size: 80%;">
- {% if team.get_coordinators %}
- {% blocktrans with plist=team.get_coordinators|people_list %}Coordinated by {{ plist }}{%
endblocktrans %}
- {% else %}
- <em>{% trans "No coordinator" %}</em>
- {% endif %}
- </span>
- </li>
- {% endfor %}
- </ul>
- </div>
- {% endfor %}
-</div>
+ {% load list_to_columns %}
+ <div class="row">
+ {% list_to_columns teams as columns 2 %}
+ {% for col in columns %}
+ <div class="column_box col-xs-12 col-sm-6 col-6 p-0 m-0">
+ <ul>
+ {% for team in col %}
+ <li style="font-size: 120%;">
+ <a href="{{ team.get_absolute_url }}">{{ team.translated_name }}</a>
+ —
+ <span style="font-size: 80%;">
+ {% if team.get_coordinators %}
+ {% blocktrans with plist=team.get_coordinators|people_list
%}Coordinated by {{ plist }}{% endblocktrans %}
+ {% else %}
+ <em>{% trans "No coordinator" %}</em>
+ {% endif %}
+ </span>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endfor %}
+ </div>
<p class="comment clear">{% blocktrans %}If anything should be changed on this page, please <a href="{{
bug_url }}">submit a bug report</a>.{% endblocktrans %}</p>
diff --git a/templates/module_list.html b/templates/module_list.html
index b08ad7fa..3a3d7a45 100644
--- a/templates/module_list.html
+++ b/templates/module_list.html
@@ -10,10 +10,10 @@
<p>{% trans "Select a module below to see some of the damned lies about it:" %}</p>
{% load list_to_columns %}
-<div class="column_container">
+<div class="row">
{% list_to_columns modules as columns 3 %}
{% for l in columns %}
- <div class="column_box col-xs-12 col-sm-4 no-padding">
+ <div class="column_box col-xs-12 col-sm-4 col-4 p-0 m-0">
<ul>
{% for m in l %}
<li><a href="{% url 'module' m.name %}">{{ m.get_description }}</a></li>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]