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:
Gabriel Hurley 2012-05-13 15:43:41 -07:00
parent cb48cebefc
commit 874107d5b1
2 changed files with 2 additions and 2 deletions

View File

@ -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 }})

View File

@ -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...