[SCM] live-studio branch, master, updated. be51da814fb12d25dce46a7f078a46f5c89bd777

Chris Lamb lamby at debian.org
Fri Jul 30 02:52:33 UTC 2010


The following commit has been merged in the master branch:
commit 06496b0392fdf6b751dce0a76af7820499989198
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Jul 28 17:17:22 2010 -0400

    Add a list of configs.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

diff --git a/live_studio_www/config/urls.py b/live_studio_www/config/urls.py
index 281afc8..6214af8 100644
--- a/live_studio_www/config/urls.py
+++ b/live_studio_www/config/urls.py
@@ -1,4 +1,5 @@
 from django.conf.urls.defaults import *
 
 urlpatterns = patterns('live_studio_www.config.views',
+    url(r'configs$', 'configs', name='configs'),
 )
diff --git a/live_studio_www/config/views.py b/live_studio_www/config/views.py
new file mode 100644
index 0000000..c0367a6
--- /dev/null
+++ b/live_studio_www/config/views.py
@@ -0,0 +1,6 @@
+from django.shortcuts import render_to_response
+
+def configs(request):
+    return render_to_response('config/configs.html', {
+        'configs': request.user.configs.all(),
+    })
diff --git a/templates/config/configs.html b/templates/config/configs.html
new file mode 100644
index 0000000..afe1ba5
--- /dev/null
+++ b/templates/config/configs.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>List of configurations</h1>
+
+<table>
+
+{% for config in configs %}
+<tr>
+ <td><a href="{{ config.get_absolute_url }}">{{ config.name }}</td>
+</tr>
+{% endfor %}
+
+</table>
+
+{% endblock %}

-- 
live-studio



More information about the debian-live-changes mailing list