From bab5394511cad767e72bceb91e98213a1bfcc413 Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Tue, 26 Aug 2014 13:19:12 +0200 Subject: [PATCH] Add dropdown actions to detail page Add support for performing actions on an object from the object's detail page. Actions are displayed in the page header, in a dropdown menu. As a POC, this patch enables dropdown actions on a detail page of a volume (/project/volumes/volume-id/). Partially implements: blueprint detail-pages-ia Change-Id: Ie21c63d86c2806d9689ae7f1a67b67c83710c108 --- openstack_dashboard/dashboards/project/volumes/volumes/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openstack_dashboard/dashboards/project/volumes/volumes/views.py b/openstack_dashboard/dashboards/project/volumes/volumes/views.py index b5bd7fc..f59beac 100644 --- a/openstack_dashboard/dashboards/project/volumes/volumes/views.py +++ b/openstack_dashboard/dashboards/project/volumes/volumes/views.py @@ -46,10 +46,10 @@ class DetailView(tabs.TabView): page_title = _("Volume Details: {{ volume.name }}") def get_context_data(self, **kwargs): - context = super(DetailView, self).get_context_data(**kwargs) - volume = self.get_data() + datum = self.get_data() table = project_tables.VolumesTable(self.request) - context["volume"] = volume + context = super(DetailView, self).get_context_data(**kwargs) + context["volume"] = datum context["url"] = self.get_redirect_url() context["actions"] = table.render_row_actions(volume) return context