Mercurial > sat_legacy_website
diff sat_website/views.py @ 39:d2c45f4ba57e
add downloads.html
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 27 Jan 2015 18:23:39 +0100 |
parents | 9d553570cc61 |
children | dfe7139dae0a |
line wrap: on
line diff
--- a/sat_website/views.py Tue Jan 27 12:17:09 2015 +0100 +++ b/sat_website/views.py Tue Jan 27 18:23:39 2015 +0100 @@ -53,6 +53,12 @@ CATEGORIES_HIDDEN = ('adhesion_form', 'thank_you') +PROJECTS_INFOS = {'sat': _(u'contains the backend, Primitivus and Jp'), + 'sat_media': _(u'Images and other media needed to launch SàT'), + 'urwid_satext': _(u'console display library needed by Primitivus'), + 'sat_pubsub': _(u'PubSub server component needed for SàT experimental blogging features'), + 'libervia': _(u'Libervia frontend (web server and client)'), + } def overview(request): return render_to_response('sat_website/overview.html') @@ -79,9 +85,7 @@ 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 + context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS) elif category == "adhesion": context.update(utils.get_asso_finance_status()) elif category == "adhesion_form":