=== modified file 'dashboard_app/context_processors.py'
@@ -1,3 +1,24 @@
-def project_version(request):
- from dashboard_app import __version__
- return {'project_version': __version__}
+from dashboard_app.models import ImageHealth
+
+
+def dashboard_globals(request):
+ return {
+ "dashboard": {
+ "interesting_images": [
+ ImageHealth('nano', 'panda'),
+ ImageHealth('nano', 'omap3'),
+ ImageHealth('nano', 'lt-panda'),
+ ImageHealth('developer', 'panda'),
+ ImageHealth('developer', 'omap3'),
+ ImageHealth('developer', 'lt-panda'),
+ ImageHealth('alip', 'panda'),
+ ImageHealth('alip', 'omap3'),
+ ImageHealth('alip', 'lt-panda'),
+ ImageHealth('alip', 'lt-panda-x11-base-natty'),
+ ImageHealth('ubuntu-desktop', 'panda'),
+ ImageHealth('ubuntu-desktop', 'omap3'),
+ ImageHealth('ubuntu-desktop', 'lt-panda'),
+ ImageHealth('ubuntu-desktop', 'lt-panda-x11-base-natty'),
+ ]
+ }
+ }
=== modified file 'dashboard_app/extension.py'
@@ -65,6 +65,9 @@
settings_module['DATAREPORT_DIRS'] = [
os.path.join(root_dir, 'examples/reports'),
os.path.join(root_dir, 'production/reports')]
+ settings_module['TEMPLATE_CONTEXT_PROCESSORS'].append(
+ 'dashboard_app.context_processors.dashboard_globals'
+ )
def contribute_to_settings_ex(self, settings_module, settings_object):
settings_module['DATAVIEW_DIRS'] = settings_object._settings.get(