comparison sat_website/views.py @ 29:b45621706d83

use Bootstrap carousels to display images and videos galeries: - one carousel for a 3x3 thumbnails grid - a second one in a modal window to view bigger pictures when a thumbnail is clicked
author souliane <souliane@mailoo.org>
date Wed, 21 Jan 2015 20:13:19 +0100
parents eda4deefecd1
children 73c6333fd124
comparison
equal deleted inserted replaced
28:30a1edf90fae 29:b45621706d83
69 69
70 if not category or category == "overview": 70 if not category or category == "overview":
71 return render_to_response('sat_website/overview.html', context) 71 return render_to_response('sat_website/overview.html', context)
72 elif category == "screenshots": 72 elif category == "screenshots":
73 context["screenshots"] = screenshots.screenshots 73 context["screenshots"] = screenshots.screenshots
74 context["screencasts"] = screenshots.screencasts
75 elif category == "screenshots_tech": 74 elif category == "screenshots_tech":
76 context["screenshots"] = screenshots.screencasts 75 context["screenshots"] = screenshots.screenshots_tech
77 context["screencasts"] = screenshots.screencasts
78 elif category == "social_contract": 76 elif category == "social_contract":
79 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract() 77 context["SOCIAL_CONTRACT"] = social_contract.get_social_contract()
80 78
81 def all_keys(cats): 79 def all_keys(cats):
82 subcats = [value[1].keys() for value in cats.values() if isinstance(value, tuple)] 80 subcats = [value[1].keys() for value in cats.values() if isinstance(value, tuple)]