[damned-lies] Use 3 columns to show the languages on /languages so it's less scroll



commit bac852fbf4a910ff2320791ce82b5bb3c32d769a
Author: Gil Forcada <gforcada gnome org>
Date:   Mon Oct 1 23:42:54 2012 +0200

    Use 3 columns to show the languages on /languages so it's less scroll

 templates/languages/language_list.html |   29 +++++++++++++++++++----------
 1 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/templates/languages/language_list.html b/templates/languages/language_list.html
index 82e350d..6ff504b 100644
--- a/templates/languages/language_list.html
+++ b/templates/languages/language_list.html
@@ -4,7 +4,7 @@
 {% block title %}{% trans "GNOME Languages" %}{% endblock %}
 
 {% block content %}
-<div class="maxwidth">
+<div class="mainpage">
 
 <h1>{% trans "GNOME Languages" %}</h1>
 
@@ -12,18 +12,27 @@
 {% plural %}GNOME is being translated to following {{ numb }} languages.
 {% endblocktrans %}</p>
 
+{% load list_to_columns %}
+<div class="col3_container">
+  {% list_to_columns languages as columns 3 %}
+  {% for col in columns %}
   <div class="col3_column">
-<ul>
-  {% for lang in languages %}
-  <li>
-    <a href="{{ lang.get_team_url }}">{{ lang.get_name }}</a>
-    <a href="/rss/languages/{{ lang.locale }}">
-      <img width="10" height="10" src="{{ STATIC_URL }}img/feed-icon-10x10.png" alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
-    </a>
-  </li>
+    <ul>
+      {% for lang in col %}
+        <li>
+          <a href="{{ lang.get_team_url }}">{{ lang.get_name }}</a>
+          <a href="/rss/languages/{{ lang.locale }}">
+            <img width="10" height="10"
+                 src="{{ STATIC_URL }}img/feed-icon-10x10.png"
+                 alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
+          </a>
+        </li>
+      {% endfor %}
+    </ul>
+  </div>
   {% endfor %}
-</ul>
 </div>
+
 <p class="comment" style="clear:both">
   {% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}
 </p>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]