From 17eb9faa4b9a4cfc83af0e80ae932f17e5cfdf4a Mon Sep 17 00:00:00 2001 From: Kálmán Viktor <kviktor@cloud.bme.hu> Date: Mon, 5 May 2014 16:08:43 +0200 Subject: [PATCH] dashboard: touches to tour --- circle/dashboard/static/dashboard/dashboard.css | 4 ++++ circle/dashboard/static/dashboard/vm-tour.js | 11 ++++------- circle/dashboard/templates/dashboard/vm-detail.html | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/circle/dashboard/static/dashboard/dashboard.css b/circle/dashboard/static/dashboard/dashboard.css index e33bdbd..91af301 100644 --- a/circle/dashboard/static/dashboard/dashboard.css +++ b/circle/dashboard/static/dashboard/dashboard.css @@ -548,3 +548,7 @@ footer a, footer a:hover, footer a:visited { .table-sorting { display: none; } + +#ops { + padding: 15px 0 15px 15px; +} diff --git a/circle/dashboard/static/dashboard/vm-tour.js b/circle/dashboard/static/dashboard/vm-tour.js index 4bdcd9e..0d7d819 100644 --- a/circle/dashboard/static/dashboard/vm-tour.js +++ b/circle/dashboard/static/dashboard/vm-tour.js @@ -1,6 +1,3 @@ -/* TODO i18n - * https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#internationalization-in-javascript-code - */ $(function() { $(".vm-details-start-template-tour").click(function() { ttour = createTemplateTour(); @@ -101,8 +98,8 @@ function createTemplateTour() { ttour.addStep({ - element: ".operation-deploy", - title: gettext("Deploy"), + element: "#ops", + title: '<i class="icon-play"></i> ' + gettext("Deploy"), placement: "left", backdrop: true, content: gettext("Deploy the virtual machine."), @@ -125,8 +122,8 @@ function createTemplateTour() { }); ttour.addStep({ - element: ".operation-save_as_template", - title: gettext("Save as"), + element: "#ops", + title: '<i class="icon-save"></i> ' + gettext("Save as"), placement: "left", backdrop: true, content: gettext('Press the "Save as template" button and wait until the activity finishes.'), diff --git a/circle/dashboard/templates/dashboard/vm-detail.html b/circle/dashboard/templates/dashboard/vm-detail.html index 1574782..ae44f16 100644 --- a/circle/dashboard/templates/dashboard/vm-detail.html +++ b/circle/dashboard/templates/dashboard/vm-detail.html @@ -32,7 +32,7 @@ {% endif %} <div class="body-content"> <div class="page-header"> - <div class="pull-right" style="padding-top: 15px;" id="ops"> + <div class="pull-right" id="ops"> {% include "dashboard/vm-detail/_operations.html" %} </div> <h1> -- libgit2 0.26.0