diff sat_website/views.py @ 1:a49aa1b823f6

added SàT archive download link (detect the last version)
author Goffi <goffi@goffi.org>
date Sun, 29 Jul 2012 01:52:27 +0200
parents 9305c6458e2f
children 0df46e87537d
line wrap: on
line diff
--- a/sat_website/views.py	Sat Jul 28 20:36:32 2012 +0200
+++ b/sat_website/views.py	Sun Jul 29 01:52:27 2012 +0200
@@ -23,7 +23,7 @@
 from django.http import Http404
 from django.shortcuts import render_to_response
 from collections import OrderedDict
-import screenshots, social_contract
+import screenshots, social_contract, utils
 
 CATEGORIES = OrderedDict([("features", "Features"),
               ("frontends", "Frontends"),
@@ -36,8 +36,12 @@
     return render_to_response('sat_website/overview.html')
 
 def generic_cat(request, category):
+    latest_dl_path, latest_version = utils.get_latest_sat()
     context = {"categories": CATEGORIES,
-               "category": category}
+               "category": category,
+               "latest_dl_path": latest_dl_path,
+               "latest_version": latest_version,
+              }
     for k,v in CATEGORIES.iteritems():
         print "category: %s:%s" % (k,v)
     if not category or category == "overview":