Panel scaffolding fixes.
Adds a missing class name to registration (Fixes bug 999358) Cleans up the example template path (fixes bug 999363) Change-Id: Idf5a38cad31872e05c47f918b4f729f70db3ae0d
This commit is contained in:
parent
cb48cebefc
commit
874107d5b1
@ -10,4 +10,4 @@ class {{ panel_name|title }}(horizon.Panel):
|
||||
slug = "{{ panel_name|slugify }}"
|
||||
|
||||
|
||||
dashboard.register({{ panel_name|title }})
|
||||
dashboard.{{ dash_name|title }}.register({{ panel_name|title }})
|
||||
|
@ -3,7 +3,7 @@ from horizon import views
|
||||
|
||||
class IndexView(views.APIView):
|
||||
# A very simple class-based view...
|
||||
template_name = '{{ panel_name }}/index.html'
|
||||
template_name = '{{ dash_name }}/{{ panel_name }}/index.html'
|
||||
|
||||
def get_data(self, request, context, *args, **kwargs):
|
||||
# Add data to the context here...
|
||||
|
Loading…
x
Reference in New Issue
Block a user