Prevent switching from syspanel to nova dash for image detail.
Fixes bug 1004258. Change-Id: I7a17414aa24041e4e5484ac4d77bfaf18da54323
This commit is contained in:
parent
4f7ee81b58
commit
113fb8490a
@ -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")
|
||||
|
@ -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<image_id>[^/]+)/update/$', UpdateView.as_view(), name='update')
|
||||
url(r'^(?P<image_id>[^/]+)/update/$', UpdateView.as_view(), name='update'),
|
||||
url(r'^(?P<image_id>[^/]+)/detail/$', DetailView.as_view(), name='detail')
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user