diff --git a/horizon/dashboards/syspanel/images/tables.py b/horizon/dashboards/syspanel/images/tables.py index d7f22c481..d827105d1 100644 --- a/horizon/dashboards/syspanel/images/tables.py +++ b/horizon/dashboards/syspanel/images/tables.py @@ -16,6 +16,7 @@ from django.utils.translation import ugettext_lazy as _ +from horizon import tables from horizon.dashboards.nova.images_and_snapshots.images.tables import ( ImagesTable, EditImage, DeleteImage) @@ -33,6 +34,10 @@ class AdminEditImage(EditImage): class AdminImagesTable(ImagesTable): + name = tables.Column("name", + link="horizon:syspanel:images:detail", + verbose_name=_("Image Name")) + class Meta: name = "images" verbose_name = _("Images") diff --git a/horizon/dashboards/syspanel/images/urls.py b/horizon/dashboards/syspanel/images/urls.py index 3f3a1a13e..9e04e13d4 100644 --- a/horizon/dashboards/syspanel/images/urls.py +++ b/horizon/dashboards/syspanel/images/urls.py @@ -20,10 +20,11 @@ from django.conf.urls.defaults import patterns, url -from .views import IndexView, UpdateView +from .views import IndexView, UpdateView, DetailView urlpatterns = patterns('horizon.dashboards.syspanel.images.views', url(r'^images/$', IndexView.as_view(), name='index'), - url(r'^(?P[^/]+)/update/$', UpdateView.as_view(), name='update') + url(r'^(?P[^/]+)/update/$', UpdateView.as_view(), name='update'), + url(r'^(?P[^/]+)/detail/$', DetailView.as_view(), name='detail') ) diff --git a/horizon/dashboards/syspanel/images/views.py b/horizon/dashboards/syspanel/images/views.py index c2b9775fb..0ec1957ec 100644 --- a/horizon/dashboards/syspanel/images/views.py +++ b/horizon/dashboards/syspanel/images/views.py @@ -57,3 +57,8 @@ class IndexView(tables.DataTableView): class UpdateView(views.UpdateView): template_name = 'syspanel/images/update.html' form_class = AdminUpdateImageForm + + +class DetailView(views.DetailView): + """ Admin placeholder for image detail view. """ + pass