From d2d110290aff2d85f21bfa1cfc05c2f89950e7c9 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 17 Aug 2013 17:32:36 +0200 Subject: [PATCH] Move docs templates into the docs/ app, now that they are not plain pages --- pgweb/docs/views.py | 6 +++--- templates/{pages/docs/manuals => docs}/archive.html | 0 templates/{pages/docs.html => docs/index.html} | 0 templates/{pages => }/docs/manuals.html | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename templates/{pages/docs/manuals => docs}/archive.html (100%) rename templates/{pages/docs.html => docs/index.html} (100%) rename templates/{pages => }/docs/manuals.html (100%) diff --git a/pgweb/docs/views.py b/pgweb/docs/views.py index 07c812cf..d0648789 100644 --- a/pgweb/docs/views.py +++ b/pgweb/docs/views.py @@ -77,7 +77,7 @@ def redirect_root(request, version): def root(request): versions = Version.objects.filter(Q(supported=True) | Q(beta=True,tree__gt=0)).order_by('-tree') - return render_to_response('pages/docs.html', { + return render_to_response('docs/index.html', { 'versions': versions, }, NavContext(request, 'docs')) @@ -101,13 +101,13 @@ class _VersionPdfWrapper(Version): def manuals(request): # We don't include beta's here. Why? versions = Version.objects.filter(supported=True).order_by('-tree') - return render_to_response('pages/docs/manuals.html', { + return render_to_response('docs/manuals.html', { 'versions': [_VersionPdfWrapper(v) for v in versions], }, NavContext(request, 'docs')) def manualarchive(request): versions = Version.objects.filter(beta=False,tree__gt=0).order_by('-tree') - return render_to_response('pages/docs/manuals/archive.html', { + return render_to_response('docs/archive.html', { 'versions': [_VersionPdfWrapper(v) for v in versions], }, NavContext(request, 'docs')) diff --git a/templates/pages/docs/manuals/archive.html b/templates/docs/archive.html similarity index 100% rename from templates/pages/docs/manuals/archive.html rename to templates/docs/archive.html diff --git a/templates/pages/docs.html b/templates/docs/index.html similarity index 100% rename from templates/pages/docs.html rename to templates/docs/index.html diff --git a/templates/pages/docs/manuals.html b/templates/docs/manuals.html similarity index 100% rename from templates/pages/docs/manuals.html rename to templates/docs/manuals.html