[damned-lies] Use 3 columns to show the teams on /teams so it's less scroll
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Use 3 columns to show the teams on /teams so it's less scroll
- Date: Mon, 1 Oct 2012 22:06:54 +0000 (UTC)
commit 94f8ae60bdb369a93bf60d6ff8caa2ee0fd8982e
Author: Gil Forcada <gforcada gnome org>
Date: Tue Oct 2 00:03:01 2012 +0200
Use 3 columns to show the teams on /teams so it's less scroll
templates/teams/team_list.html | 43 +++++++++++++++++++++++----------------
1 files changed, 25 insertions(+), 18 deletions(-)
---
diff --git a/templates/teams/team_list.html b/templates/teams/team_list.html
index b974b81..b76a677 100644
--- a/templates/teams/team_list.html
+++ b/templates/teams/team_list.html
@@ -11,26 +11,33 @@
{% if teams %}
<p>{% trans "Select a team below to see more information about it:" %}</p>
- <ul class="foot">
- {% for team in teams %}
- <li style="font-size: 120%;">
- <a href="{{ team.get_absolute_url }}">{{ team.translated_name }}</a>
- {% if team.webpage_url %}
- — <a href="{{ team.webpage_url }}">{{ team.webpage_url }}</a>
- {% endif %}
- {% with team.get_coordinator as coordinator %}
- {% if coordinator %}
- <br />
- <span style="font-size: 80%;">
- {% blocktrans with coordinator.get_absolute_url|safe as url and coordinator.name as name %}Coordinated by <a href="{{ url }}">{{ name }}</a>{% endblocktrans %}
- </span>
- {% endif %}
- {% endwith %}
- </li>
- {% endfor %}
+{% load list_to_columns %}
+<div class="col3_container">
+ {% list_to_columns teams as columns 3 %}
+ {% for col in columns %}
+ <div class="col3_column">
+ <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%;">
+ {% with team.get_coordinator as coordinator %}
+ {% if coordinator %}
+ {% blocktrans with coordinator.get_absolute_url|safe as url and coordinator.name as name %}Coordinated by <a href="{{ url }}">{{ name }}</a>{% endblocktrans %}
+ {% else %}
+ <em>{% trans "No coordinator" %}</em>
+ {% endif %}
+ </span>
+ {% endwith %}
+ </li>
+ {% endfor %}
</ul>
+ </div>
+ {% endfor %}
+</div>
- <p class="comment">{% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}</p>
+<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>
{% else %}
<p>{% trans "There are currently no translation teams in GNOME. :(" %}</p>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]