Commit 17eb9faa by Kálmán Viktor

dashboard: touches to tour

parent a8c6a220
...@@ -548,3 +548,7 @@ footer a, footer a:hover, footer a:visited { ...@@ -548,3 +548,7 @@ footer a, footer a:hover, footer a:visited {
.table-sorting { .table-sorting {
display: none; display: none;
} }
#ops {
padding: 15px 0 15px 15px;
}
/* TODO i18n
* https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#internationalization-in-javascript-code
*/
$(function() { $(function() {
$(".vm-details-start-template-tour").click(function() { $(".vm-details-start-template-tour").click(function() {
ttour = createTemplateTour(); ttour = createTemplateTour();
...@@ -101,8 +98,8 @@ function createTemplateTour() { ...@@ -101,8 +98,8 @@ function createTemplateTour() {
ttour.addStep({ ttour.addStep({
element: ".operation-deploy", element: "#ops",
title: gettext("Deploy"), title: '<i class="icon-play"></i> ' + gettext("Deploy"),
placement: "left", placement: "left",
backdrop: true, backdrop: true,
content: gettext("Deploy the virtual machine."), content: gettext("Deploy the virtual machine."),
...@@ -125,8 +122,8 @@ function createTemplateTour() { ...@@ -125,8 +122,8 @@ function createTemplateTour() {
}); });
ttour.addStep({ ttour.addStep({
element: ".operation-save_as_template", element: "#ops",
title: gettext("Save as"), title: '<i class="icon-save"></i> ' + gettext("Save as"),
placement: "left", placement: "left",
backdrop: true, backdrop: true,
content: gettext('Press the "Save as template" button and wait until the activity finishes.'), content: gettext('Press the "Save as template" button and wait until the activity finishes.'),
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{% endif %} {% endif %}
<div class="body-content"> <div class="body-content">
<div class="page-header"> <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" %} {% include "dashboard/vm-detail/_operations.html" %}
</div> </div>
<h1> <h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment