diff sat_website/views.py @ 89:4b4a5d7602f8

rename screenshots to media, since not only screenshots but also videos are listed
author souliane <souliane@mailoo.org>
date Tue, 16 Jun 2015 12:35:32 +0200
parents 6250b65523c6
children e138879873f1
line wrap: on
line diff
--- a/sat_website/views.py	Mon Jun 15 21:06:38 2015 +0200
+++ b/sat_website/views.py	Tue Jun 16 12:35:32 2015 +0200
@@ -26,12 +26,12 @@
 from django.utils.translation import ugettext_lazy as _
 from django.template import RequestContext
 from collections import OrderedDict
-import screenshots, social_contract, utils, forms
+import media, social_contract, utils, forms
 
 CATEGORIES = OrderedDict([('frontends', (_(u"Presentation"),
                                 OrderedDict([("features", _(u"Features")),
                                              ("frontends", _(u"Frontends")),
-                                             ("screenshots", _(u"Screenshots & Videos")),
+                                             ("media", _(u"Screenshots & Videos")),
                                              ]))),
                           ('principles', (_(u"Technical area"),
                                 OrderedDict([("principles", _(u"Principles")),
@@ -54,6 +54,7 @@
 
 CATEGORIES_ALIASES = {"adhesion": "membership",
                       "adhesion_form": "membership_form",
+                      "screenshots": "media",
                       }
 
 CATEGORIES_HIDDEN = ('membership_form', 'thank_you')
@@ -87,9 +88,9 @@
     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
-        context["screenshots_tech"] = screenshots.screenshots_tech
+    elif category == "media":
+        context["media"] = media.media
+        context["media_tech"] = media.media_tech
     elif category == "social_contract":
         context["SOCIAL_CONTRACT"] = social_contract.get_social_contract()
     elif category == "downloads":