From 8055616b1ff26bfd3b27d3797053d962e25001d6 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 4 Sep 2018 15:14:08 +0300 Subject: [PATCH] small cosmetic changes of snapshot to describe of operation --- instances/templates/instance.html | 2 +- instances/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 98cf692..7a9be1e 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -512,7 +512,7 @@
  • - {% trans "Manage Snapshot" %} + {% trans "Manage Snapshots" %}
  • diff --git a/instances/views.py b/instances/views.py index ac188ed..5bf95b1 100644 --- a/instances/views.py +++ b/instances/views.py @@ -565,14 +565,14 @@ def instance(request, compute_id, vname): conn.create_snapshot(name) msg = _("New snapshot") addlogmsg(request.user.username, instance.name, msg) - return HttpResponseRedirect(request.get_full_path() + '#restoresnapshot') + return HttpResponseRedirect(request.get_full_path() + '#managesnapshot') if 'delete_snapshot' in request.POST: snap_name = request.POST.get('name', '') conn.snapshot_delete(snap_name) msg = _("Delete snapshot") addlogmsg(request.user.username, instance.name, msg) - return HttpResponseRedirect(request.get_full_path() + '#restoresnapshot') + return HttpResponseRedirect(request.get_full_path() + '#managesnapshot') if 'revert_snapshot' in request.POST: snap_name = request.POST.get('name', '')