From: Radek Czajka Date: Wed, 25 Aug 2010 10:17:22 +0000 (+0200) Subject: Fixes #781: sexy lessons list X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/990324f54f6e6d1f33c57c4d454ce4276ca65863?ds=sidebyside;hp=--cc Fixes #781: sexy lessons list --- 990324f54f6e6d1f33c57c4d454ce4276ca65863 diff --git a/apps/lessons/urls.py b/apps/lessons/urls.py index 6c89e5f6b..1d256374b 100644 --- a/apps/lessons/urls.py +++ b/apps/lessons/urls.py @@ -4,13 +4,11 @@ # from django.conf.urls.defaults import * from catalogue import forms -from lessons import models urlpatterns = patterns('', - url(r'^$', 'django.views.generic.list_detail.object_list', { - 'queryset': models.Document.objects.all(), - 'template_name': 'lessons/document_list.html', + url(r'^$', 'django.views.generic.simple.direct_to_template', { + 'template': 'lessons/document_list.html', 'extra_context': { 'form': forms.SearchForm(), }, diff --git a/wolnelektury/static/css/master.css b/wolnelektury/static/css/master.css index 7cc1e304a..cfa644f65 100644 --- a/wolnelektury/static/css/master.css +++ b/wolnelektury/static/css/master.css @@ -877,6 +877,14 @@ div.shown-tags p, div.all-tags p { display: block; } +#document-list ul { + padding-left: 30px; + list-style: disc; +} +#document-list li li a { + width: 340px; +} + #document-list li a:hover, #document-list li a.active { text-decoration: none; background-color: #EEE; diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index d8564a590..2f1c848b2 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -9,9 +9,9 @@ {% block extrahead %}