1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

small cosmetic changes of snapshot to describe of operation

This commit is contained in:
catborise 2018-09-04 15:14:08 +03:00
parent 33513ca648
commit 8055616b1f
2 changed files with 3 additions and 3 deletions

View file

@ -512,7 +512,7 @@
</li>
<li role="presentation">
<a href="#managesnapshot" aria-controls="managesnapshot" role="tab" data-toggle="tab">
{% trans "Manage Snapshot" %}
{% trans "Manage Snapshots" %}
</a>
</li>
</ul>

View file

@ -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', '')