CLOUDSTACK-646: Cleaning up Citrix/eula/CloudPlatform references

Tried to remove any references to license agreements, EULA, Citrix,
or CloudPlatform. Tested through devcloud, didn't see decreased UI
functionality.
This commit is contained in:
John Kinsella 2012-12-16 20:39:03 -08:00 committed by Joe Brockmeier
parent b51d5a4017
commit 7d7c3eb6da
12 changed files with 19 additions and 133 deletions

View File

@ -292,8 +292,6 @@ label.installWizard.subtitle=This tour will aid you in setting up your CloudStac
label.continue=Continue
label.installWizard.title=Hello and Welcome to CloudStack&#8482
label.agree=Agree
label.license.agreement=License Agreement
label.license.agreement.subtitle=Please accept the CloudStack&#8482 EULA before installing.
label.manage.resources=Manage Resources
label.port.forwarding.policies=Port forwarding policies
label.load.balancing.policies=Load balancing policies

View File

@ -292,8 +292,6 @@ label.installWizard.subtitle=Ce tutorial vous aidera
label.continue=Continuer
label.installWizard.title=Bonjour et bienvenue dans CloudStack
label.agree=Accepter
label.license.agreement=Accord de licence
label.license.agreement.subtitle=Merci d\'accepter l\'EULA CloudStack avant d\'installer.
label.manage.resources=Gérer les ressources
label.port.forwarding.policies=Règles de transfert de port
label.load.balancing.policies=Règles de répartition de charge

View File

@ -295,8 +295,6 @@ label.installWizard.subtitle=このガイド ツアーは CloudStack™ 環
label.continue=続行
label.installWizard.title=CloudStack™ へようこそ
label.agree=同意する
label.license.agreement=ライセンス契約
label.license.agreement.subtitle=インストールの前に CloudStack™ エンド ユーザー ライセンス契約に同意してください。
label.manage.resources=リソースの管理
label.port.forwarding.policies=ポート転送ポリシー
label.load.balancing.policies=負荷分散ポリシー

View File

@ -292,8 +292,6 @@ label.installWizard.subtitle=Este tour vai auxiliar voc
label.continue=Continuar
label.installWizard.title=Olá, seja bem vindo ao CloudStack&\#8482
label.agree=Concordo
label.license.agreement=Acordo de Licença
label.license.agreement.subtitle=Por favor aceite a EULA do CloudStack&\#8482 antes de instalar.
label.manage.resources=Gerenciar Recursos
label.port.forwarding.policies=Políticas de redirecionamento de portas
label.load.balancing.policies=Políticas de balanceamento de carga

View File

@ -292,8 +292,6 @@ label.installWizard.subtitle=Это руководство настроит ва
label.continue=Продолжить
label.installWizard.title=Здравствуйте и добро пожаловать в CloudStack\!
label.agree=Согласен
label.license.agreement=Лицензионное соглашение
label.license.agreement.subtitle=Для продолжения установки согласитесь с лицензионным соглашением.
label.manage.resources=Управление ресурсами
label.port.forwarding.policies=Политики проброса портов
label.load.balancing.policies=Политики балансировки нагрузки

View File

@ -295,8 +295,6 @@ label.installWizard.subtitle=此教程将帮助您设置 CloudStack&#8482 安装
label.continue=继续
label.installWizard.title=您好,欢迎使用 CloudStack&#8482
label.agree=同意
label.license.agreement=许可协议
label.license.agreement.subtitle=必须先接受 CloudStack&#8482 EULA 才能进行安装。
label.manage.resources=管理资源
label.port.forwarding.policies=端口转发策略
label.load.balancing.policies=负载平衡策略

View File

@ -201,7 +201,7 @@ TAGS FOR A SECTION
<section id="INSERT A UNIQUE SECTION ID HERE, PROBABLY MATCHING THE TITLE BELOW. KEEP THE QUOTE MARKS.">
<title>Text of the section title</title>
<para>Here's the text of a paragraph in this section.</para>
<para>Always use &PRODUCT; rather than typing CloudStack or CloudPlatform.</para>
<para>Always use &PRODUCT; rather than typing CloudStack.</para>
<para>Indent with 4 spaces, not with tab characters.</para>
<para>To hyperlink to a URL outside this document: <ulink url="http://external URL here">Display text of the link here</ulink></para>
<para>To hyperlink to another section in this document: <xref linkend="SECTION ID OF THE OTHER SECTION GOES HERE." />

View File

@ -616,44 +616,12 @@ div.list-view div.toolbar div.section-switcher div.section-select label {
position: absolute;
}
/*** EULA*/
.install-wizard .eula-copy {
width: 688px;
height: 480px;
background: #FFFFFF;
border: 1px solid #BCBCBC;
/*+box-shadow:0px 4px 10px #B9B9B9;*/
-moz-box-shadow: 0px 4px 10px #B9B9B9;
-webkit-box-shadow: 0px 4px 10px #B9B9B9;
-o-box-shadow: 0px 4px 10px #B9B9B9;
box-shadow: 0px 4px 10px #B9B9B9;
padding: 5px;
/*+border-radius:4px;*/
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
border-radius: 4px 4px 4px 4px;
overflow: auto;
overflow-x: hidden;
}
.install-wizard .eula-copy p {
font-size: 12px;
margin-top: 21px;
}
/*** Intro*/
.install-wizard .step.intro.what-is-cloudstack p {
background: url(../images/bg-what-is-cloudstack.png) no-repeat 50% 237px;
height: 540px;
}
.install-wizard .step.intro.what-is-cloudplatform p {
background: url(../images/bg-what-is-cloudplatform.png) no-repeat 50% 237px;
height: 540px;
}
/*** Diagram*/
.install-wizard .diagram {
width: 910px;
@ -1794,15 +1762,6 @@ div.detail-group.actions td {
cursor: pointer;
}
#header div.logo {
width: 170px;
height: 47px;
position: relative;
float: left;
margin: 4px 0 0 19px;
background: url(../images/logo-cloudplatform.png) no-repeat 0 center;
}
#header.nologo div.logo {
width: 170px;
height: 47px;

View File

@ -160,8 +160,6 @@ dictionary = {
'label.installWizard.subtitle': '<fmt:message key="label.installWizard.subtitle"/>',
'label.installWizard.title': '<fmt:message key="label.installWizard.title"/>',
'label.agree': '<fmt:message key="label.agree"/>',
'label.license.agreement.subtitle': '<fmt:message key="label.license.agreement.subtitle"/>',
'label.license.agreement': '<fmt:message key="label.license.agreement"/>',
'label.port.forwarding.policies': '<fmt:message key="label.port.forwarding.policies"/>',
'label.load.balancing.policies': '<fmt:message key="label.load.balancing.policies"/>',
'label.networking.and.security': '<fmt:message key="label.networking.and.security"/>',

View File

@ -372,22 +372,21 @@
response: {
success: function(args) {
if (args.doInstall && isAdmin()) {
var initInstallWizard = function(eulaHTML) {
var initInstallWizard = function() {
cloudStack.uiCustom.installWizard({
$container: $container,
context: context,
eula: eulaHTML,
complete: function() {
// Show cloudStack main UI
$container.cloudStack($.extend(cloudStackArgs, { hasLogo: loginArgs.eula }));
$container.cloudStack($.extend(cloudStackArgs, { hasLogo: false }));
}
});
};
initInstallWizard(loginArgs.eula);
initInstallWizard();
} else {
// Show cloudStack main UI
$container.cloudStack($.extend(cloudStackArgs, { hasLogo: loginArgs.eula }));
$container.cloudStack($.extend(cloudStackArgs, { hasLogo: false }));
}
}
}
@ -402,22 +401,8 @@
}
};
// EULA check
$.ajax({
url: 'eula.' + g_lang + '.html',
dataType: 'html',
success: function(html) {
document.title = 'CloudPlatform';
cloudStack.uiCustom.login($.extend(loginArgs, { eula: html, hasLogo: true }));
},
error: function() {
document.title = 'CloudStack';
cloudStack.uiCustom.login(loginArgs);
},
beforeSend : function(XMLHttpResponse) {
return true;
}
});
document.title = 'CloudStack';
cloudStack.uiCustom.login(loginArgs);
// Localization
cloudStack.localizationFn = function(str) {

View File

@ -207,13 +207,6 @@
});
},
// EULA
eula: function(args) {
args.response.success({
text: '<iframe src="eula.html" />'
});
},
whatIsAZone: function(args) {
args.response.success({
text: 'message.installWizard.copy.whatIsAZone'

View File

@ -19,23 +19,10 @@
var context = args.context;
var $installWizard = $('<div>').addClass('install-wizard');
var $container = args.$container;
var eulaHTML = args.eula;
var state = {}; // Hold wizard form state
var launchStart; // Holds last launch callback, in case of error
var $launchState;
// Checking if title should be CloudStack or CloudPlatform replacing occurrences thereby
var checkTitle = function(str) {
// Getting the flag that indicates if EULA is present
if (eulaHTML && eulaHTML.length) { return str.replace(/CloudStack/ig,'CloudPlatform'); }
else { return str; }
}
/* var data = $("p");
$(data).each(function() {
$(this).html(checkTitle($(this).html()));
});
*/
/**
* Successful installation action
*/
@ -55,7 +42,7 @@
cloudStack.installWizard.copy[id]({
response: {
success: function(args) {
$elem.append(checkTitle(_l(args.text)));
$elem.append(_l(args.text));
}
}
});
@ -103,9 +90,9 @@
var $intro = $('<div></div>').addClass('intro');
var $title = $('<div></div>').addClass('title')
.html(checkTitle(title));
.html(title);
var $subtitle = $('<div></div>').addClass('subtitle')
.html(checkTitle(subtitle));
.html(subtitle);
var $copy = getCopy(copyID, $('<p></p>'));
var $prev = elems.prevButton(_l('label.back'));
var $continue = elems.nextButton('OK');
@ -218,8 +205,8 @@
tooltip: function(title, content) {
return $('<div>').addClass('tooltip-info').append(
$('<div>').addClass('arrow'),
$('<div>').addClass('title').html(checkTitle(_l(title))),
$('<div>').addClass('content').append($('<p>').html(checkTitle(_l(content))))
$('<div>').addClass('title').html(_l(title)),
$('<div>').addClass('content').append($('<p>').html(_l(content)))
);
},
@ -230,8 +217,8 @@
return $('<div></div>').addClass('header')
.append(
$.merge(
$('<h2></h2>').html(checkTitle(_l('label.installWizard.title'))),
$('<h3></h3>').html(checkTitle(_l('label.installWizard.subtitle')))
$('<h2></h2>').html(_l('label.installWizard.title')),
$('<h3></h3>').html(_l('label.installWizard.subtitle'))
)
);
},
@ -311,36 +298,13 @@
* Layout/behavior for each step in wizard
*/
var steps = {
eula: function(args) {
var $intro = $('<div></div>').addClass('intro eula');
var $title = $('<div></div>').addClass('title').html(checkTitle(_l('label.license.agreement')));
var $subtitle = $('<div></div>').addClass('subtitle').html(checkTitle(_l('label.license.agreement.subtitle')));
var $copy = $('<div></div>').addClass('eula-copy').html(eulaHTML);
var $continue = elems.nextButton(_l('label.agree'));
$continue.click(function() {
goTo('intro');
return false;
});
return $intro.append($title, $subtitle,
$copy,
$continue);
},
intro: function(args) {
if (eulaHTML && eulaHTML.length){
var $intro = $('<div></div>').addClass('intro what-is-cloudplatform'); }
else {
var $intro = $('<div></div>').addClass('intro what-is-cloudstack');
}
var $title = $('<div></div>').addClass('title').html(checkTitle(_l('label.what.is.cloudstack')));
var $subtitle = $('<div></div>').addClass('subtitle').html(checkTitle(_l('label.introduction.to.cloudstack')));
var $intro = $('<div></div>').addClass('intro what-is-cloudstack');
var $title = $('<div></div>').addClass('title').html(_l('label.what.is.cloudstack'));
var $subtitle = $('<div></div>').addClass('subtitle').html(_l('label.introduction.to.cloudstack'));
var $copy = getCopy('whatIsCloudStack', $('<p></p>'));
var $continue = elems.nextButton(_l('label.continue.basic.install'));
var $advanced = elems.nextButton(checkTitle(_l('label.skip.guide'))).addClass('advanced-installation');
var $advanced = elems.nextButton(_l('label.skip.guide')).addClass('advanced-installation');
$continue.click(function() {
goTo('changeUser');
@ -811,8 +775,7 @@
}
};
var initialStep = eulaHTML ?
steps.eula().addClass('step') : steps.intro().addClass('step');
var initialStep = steps.intro().addClass('step');
showDiagram('');