summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index a0eb69591b..0cf96a0ef3 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -477,7 +477,16 @@ class CustomImagesTable(ToasterTable):
477 477
478 def get_context_data(self, **kwargs): 478 def get_context_data(self, **kwargs):
479 context = super(CustomImagesTable, self).get_context_data(**kwargs) 479 context = super(CustomImagesTable, self).get_context_data(**kwargs)
480
481 empty_state_template = '''
482 You have not created any custom images yet.
483 <a href="{% url 'newcustomimage' data.pid %}">
484 Create your first custom image</a>
485 '''
486 context['empty_state'] = self.render_static_data(empty_state_template,
487 kwargs)
480 project = Project.objects.get(pk=kwargs['pid']) 488 project = Project.objects.get(pk=kwargs['pid'])
489
481 # TODO put project into the ToasterTable base class 490 # TODO put project into the ToasterTable base class
482 context['project'] = project 491 context['project'] = project
483 return context 492 return context