From 3f258e5594a9cc462646e8e30b83ba5580f9ef9d Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 8 Feb 2019 20:34:23 -0600 Subject: cleaned up projects builder and templates, new CSS fonts --- app/builder/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/builder/base.py') diff --git a/app/builder/base.py b/app/builder/base.py index 1b441a0..b41bbba 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -322,8 +322,8 @@ class BuildProjects(Build): def build_project_archive(self): qs = apps.get_model('projects', 'Project').objects.filter(status__exact=1).order_by('-pub_date') - c = Context({'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, - 'IMAGES_URL': settings.BAKED_IMAGES_URL}) + c = {'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, + 'IMAGES_URL': settings.BAKED_IMAGES_URL} t = render_to_string('archives/projects.html', c).encode('utf-8') self.write_file('projects/', t) @@ -335,11 +335,11 @@ class BuildProjects(Build): qs = model.objects.filter(visited__exact=True).order_by("-date_visited_begin") else: qs = model.objects.filter(status__exact=1) - c = Context({ + c = { 'object_list': qs, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL - }) + } t = render_to_string('details/%s.html' % (proj['slug'].split("/")[1]), c).encode('utf-8') path = 'projects/%s/' % (proj['slug'].split("/")[1]) self.write_file(path, t) @@ -352,11 +352,11 @@ class BuildProjects(Build): def build_gifs(self): qs = apps.get_model('projects', 'AnimatedGif').objects.all() for gif in qs: - c = Context({ + c = { 'object': gif, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL - }) + } t = render_to_string('details/gifs.html', c).encode('utf-8') path = 'projects/gifs/%s/' % (gif.slug) self.write_file(path, t) -- cgit v1.2.3-70-g09d2