[SCM] live-studio branch, master, updated. 1fe032df7aaa4bff181daf386b8b4bd02929a28c

Chris Lamb lamby at debian.org
Sun Aug 1 18:35:43 UTC 2010


The following commit has been merged in the master branch:
commit 08839c4342833c54148f0b90084fc94b986e14bf
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 1 14:23:34 2010 -0400

    Tidy "my configurations" page.

diff --git a/templates/config/configs.html b/templates/config/configs.html
index a83dc8d..f4ac578 100644
--- a/templates/config/configs.html
+++ b/templates/config/configs.html
@@ -5,18 +5,25 @@
 {% endblock %}
 
 {% block content %}
-<h1>List of configurations</h1>
+<h1>My configurations</h1>
 
-<p><strong><a href="{% url config:add %}">Add new configuration</a></strong></p>
+<p>A <em>configuration</em> is a set of properties that defines your Live
+system. This page lists your saved Debian Live Studio configurations. You can
+return here and rebuild them at any time.</p>
 
-<table>
+{% if request.user.configs.exists %}
+  <ul>
+  {% for config in request.user.configs.all %}
+    <li>
+      <a href="{{ config.get_absolute_url }}">{{ config.name }}</a>
+      <small>Added {{ config.created|timesince }} ago</small>
+    </li>
+  {% endfor %}
+  </ul>
 
-{% for config in request.user.configs.all %}
-<tr>
- <td><a href="{{ config.get_absolute_url }}">{{ config.name }}</td>
-</tr>
-{% endfor %}
-
-</table>
+  <p><strong><a href="{% url config:add %}">Add new configuration</a></strong></p>
+{% else %}
+  <div class="tip"><p>You have no saved configurations. <a href="{% url config:add %}">Add one</a>.</p></div>
+{% endif %}
 
 {% endblock %}

-- 
live-studio



More information about the debian-live-changes mailing list