Mercurial > sat_legacy_website
comparison 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 |
comparison
equal
deleted
inserted
replaced
38:e501f5ff7191 | 39:d2c45f4ba57e |
---|---|
51 ("social_contract", _(u"Social contract")), | 51 ("social_contract", _(u"Social contract")), |
52 ]) | 52 ]) |
53 | 53 |
54 CATEGORIES_HIDDEN = ('adhesion_form', 'thank_you') | 54 CATEGORIES_HIDDEN = ('adhesion_form', 'thank_you') |
55 | 55 |
56 PROJECTS_INFOS = {'sat': _(u'contains the backend, Primitivus and Jp'), | |
57 'sat_media': _(u'Images and other media needed to launch SàT'), | |
58 'urwid_satext': _(u'console display library needed by Primitivus'), | |
59 'sat_pubsub': _(u'PubSub server component needed for SàT experimental blogging features'), | |
60 'libervia': _(u'Libervia frontend (web server and client)'), | |
61 } | |
56 | 62 |
57 def overview(request): | 63 def overview(request): |
58 return render_to_response('sat_website/overview.html') | 64 return render_to_response('sat_website/overview.html') |
59 | 65 |
60 def generic_cat(request, category): | 66 def generic_cat(request, category): |
77 elif category == "screenshots_tech": | 83 elif category == "screenshots_tech": |
78 context["screenshots"] = screenshots.screenshots_tech | 84 context["screenshots"] = screenshots.screenshots_tech |
79 elif category == "social_contract": | 85 elif category == "social_contract": |
80 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract() | 86 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract() |
81 elif category == "downloads": | 87 elif category == "downloads": |
82 latest_dl_path, latest_version = utils.get_latest_sat() | 88 context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS) |
83 context["latest_dl_path"] = latest_dl_path | |
84 context["latest_version"] = latest_version | |
85 elif category == "adhesion": | 89 elif category == "adhesion": |
86 context.update(utils.get_asso_finance_status()) | 90 context.update(utils.get_asso_finance_status()) |
87 elif category == "adhesion_form": | 91 elif category == "adhesion_form": |
88 if request.method == 'POST': | 92 if request.method == 'POST': |
89 form = forms.RegistrationForm(request.POST) | 93 form = forms.RegistrationForm(request.POST) |