Mercurial > sat_legacy_website
diff sat_website/views.py @ 33:73c6333fd124
change overview.html, move the previous content to principles.html
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 27 Jan 2015 08:07:15 +0100 |
parents | b45621706d83 |
children | 9d553570cc61 |
line wrap: on
line diff
--- a/sat_website/views.py Tue Jan 27 07:54:43 2015 +0100 +++ b/sat_website/views.py Tue Jan 27 08:07:15 2015 +0100 @@ -55,19 +55,19 @@ return render_to_response('sat_website/overview.html') def generic_cat(request, category): - latest_dl_path, latest_version = utils.get_latest_sat() context = { "available_languages": ['fr', 'en'], "categories": CATEGORIES, "categories_right": CATEGORIES_RIGHT, "category": category, - "latest_dl_path": latest_dl_path, - "latest_version": latest_version, } + "libervia_demo_url": utils.get_libervia_demo_url(), + "subscription_amounts": utils.get_asso_subscr_amounts(), context.update(csrf(request)) if not category or category == "overview": + context.update(utils.get_asso_finance_status()) return render_to_response('sat_website/overview.html', context) elif category == "screenshots": context["screenshots"] = screenshots.screenshots @@ -75,6 +75,10 @@ context["screenshots"] = screenshots.screenshots_tech elif category == "social_contract": context["SOCIAL_CONTRACT"] = social_contract.get_social_contract() + elif category == "downloads": + latest_dl_path, latest_version = utils.get_latest_sat() + context["latest_dl_path"] = latest_dl_path + context["latest_version"] = latest_version def all_keys(cats): subcats = [value[1].keys() for value in cats.values() if isinstance(value, tuple)]