From 7560824304f2571be7de52227de7d52976309e9c Mon Sep 17 00:00:00 2001 From: "Anton V. Yanchenko" Date: Tue, 31 Jul 2012 13:08:19 +0000 Subject: [PATCH] Fixed name of snaphot button. Fixes bug 1018370. Change-Id: I66aae280ee6633a3fae58f314c0eb77b2f150003 --- horizon/dashboards/nova/instances/tables.py | 6 +++--- horizon/dashboards/syspanel/instances/tables.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/horizon/dashboards/nova/instances/tables.py b/horizon/dashboards/nova/instances/tables.py index f42d191ad..bf3310a69 100644 --- a/horizon/dashboards/nova/instances/tables.py +++ b/horizon/dashboards/nova/instances/tables.py @@ -157,9 +157,9 @@ class EditInstance(tables.LinkAction): classes = ("ajax-modal", "btn-edit") -class SnapshotLink(tables.LinkAction): +class CreateSnapshot(tables.LinkAction): name = "snapshot" - verbose_name = _("Snapshot") + verbose_name = _("Create Snapshot") url = "horizon:nova:images_and_snapshots:snapshots:create" classes = ("ajax-modal", "btn-camera") @@ -293,6 +293,6 @@ class InstancesTable(tables.DataTable): status_columns = ["status", "task"] row_class = UpdateRow table_actions = (LaunchLink, TerminateInstance) - row_actions = (SnapshotLink, AssociateIP, EditInstance, ConsoleLink, + row_actions = (CreateSnapshot, AssociateIP, EditInstance, ConsoleLink, LogLink, TogglePause, ToggleSuspend, RebootInstance, TerminateInstance) diff --git a/horizon/dashboards/syspanel/instances/tables.py b/horizon/dashboards/syspanel/instances/tables.py index 62f097f60..749442889 100644 --- a/horizon/dashboards/syspanel/instances/tables.py +++ b/horizon/dashboards/syspanel/instances/tables.py @@ -23,7 +23,7 @@ from django.utils.translation import ugettext_lazy as _ from horizon import api from horizon import tables from horizon.dashboards.nova.instances.tables import (TerminateInstance, - EditInstance, ConsoleLink, LogLink, SnapshotLink, + EditInstance, ConsoleLink, LogLink, CreateSnapshot, TogglePause, ToggleSuspend, RebootInstance, get_size, UpdateRow, LaunchLink, get_ips, get_power_state) from horizon.utils.filters import replace_underscores @@ -97,6 +97,6 @@ class SyspanelInstancesTable(tables.DataTable): status_columns = ["status", "task"] table_actions = (AdminLaunchLink, TerminateInstance,) row_class = AdminUpdateRow - row_actions = (EditInstance, ConsoleLink, LogLink, SnapshotLink, + row_actions = (EditInstance, ConsoleLink, LogLink, CreateSnapshot, TogglePause, ToggleSuspend, RebootInstance, TerminateInstance)