mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-43000: Update link and text shown in the hosts' general tabs
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
75faf093a9
commit
6fa8cfa10b
@ -394,10 +394,12 @@ namespace XenAdmin.Controls
|
||||
AddRow(CreateKeyCell(key), valueCell, null, contextMenuItems);
|
||||
}
|
||||
|
||||
internal void AddEntryWithNoteLink(string key, string value, string note, Action action, params ToolStripMenuItem[] contextMenuItems)
|
||||
internal void AddEntryWithNoteLink(string key, string value, string note, Action action, Color fontColor, params ToolStripMenuItem[] contextMenuItems)
|
||||
{
|
||||
var valueCell = new DataGridViewTextBoxCell { Value = value };
|
||||
var noteCell = new DataGridViewLinkCell { Value = note, Tag = action };
|
||||
valueCell.Style.ForeColor = fontColor;
|
||||
valueCell.Style.SelectionForeColor = fontColor;
|
||||
AddRow(CreateKeyCell(key), valueCell, noteCell, contextMenuItems);
|
||||
}
|
||||
|
||||
|
@ -116,13 +116,13 @@ namespace XenAdmin.Dialogs
|
||||
{
|
||||
if(!dataToSummarise.XenObject.Connection.IsConnected)
|
||||
{
|
||||
View.DrawSummaryForHighlightedRow(dataToSummarise, new LicenseManagerSummaryComponent(), LaunchUrl(InvisibleMessages.LICENSE_BUY_URL), LaunchUrl(InvisibleMessages.LICENSE_BUY_URL));
|
||||
View.DrawSummaryForHighlightedRow(dataToSummarise, new LicenseManagerSummaryComponent(), LaunchUrl(InvisibleMessages.LICENSE_BUY_URL), LaunchUrl(InvisibleMessages.CSS_URL));
|
||||
SetSummaryInformation(Messages.POOL_OR_HOST_IS_NOT_CONNECTED);
|
||||
return;
|
||||
}
|
||||
|
||||
SummaryTextComponent component = BuildSummaryComponent(dataToSummarise);
|
||||
View.DrawSummaryForHighlightedRow(dataToSummarise, component, LaunchUrl(InvisibleMessages.LICENSE_BUY_URL), LaunchUrl(InvisibleMessages.LICENSE_BUY_URL));
|
||||
View.DrawSummaryForHighlightedRow(dataToSummarise, component, LaunchUrl(InvisibleMessages.LICENSE_BUY_URL), LaunchUrl(InvisibleMessages.CSS_URL));
|
||||
if(dataToSummarise.Disabled)
|
||||
SetSummaryInformation(dataToSummarise.DisabledReason);
|
||||
}
|
||||
|
@ -979,12 +979,13 @@ namespace XenAdmin.TabPages
|
||||
if (host.CanShowTrialEditionUpsell())
|
||||
{
|
||||
pdSectionLicense.AddEntryWithNoteLink(Messages.WARNING, Messages.TRIAL_EDITION_UPSELLING_MESSAGE,
|
||||
Messages.LICENSE_MANAGER_BUY_LICENSE_LINK_TEXT, () => Program.OpenURL(InvisibleMessages.LICENSE_BUY_URL));
|
||||
Messages.LICENSE_MANAGER_BUY_LICENSE_LINK_TEXT, () => Program.OpenURL(InvisibleMessages.LICENSE_BUY_URL), Color.Red);
|
||||
}
|
||||
else if (host.CssLicenseHasExpired())
|
||||
|
||||
if (host.CssLicenseHasExpired() && !host.IsInPreviewRelease())
|
||||
{
|
||||
pdSectionLicense.AddEntryWithNoteLink(Messages.WARNING, Messages.EXPIRED_CSS_UPSELLING_MESSAGE_HOST,
|
||||
Messages.LICENSE_MANAGER_BUY_LICENSE_LINK_TEXT, () => Program.OpenURL(InvisibleMessages.LICENSE_BUY_URL));
|
||||
Messages.LICENSE_MANAGER_PURCHASE_SUPPORT_LINK_TEXT, () => Program.OpenURL(InvisibleMessages.CSS_URL), Color.Red);
|
||||
}
|
||||
|
||||
if (host.license_params == null)
|
||||
|
9
XenModel/InvisibleMessages.Designer.cs
generated
9
XenModel/InvisibleMessages.Designer.cs
generated
@ -78,6 +78,15 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to https://www.citrix.com/support/programs/.
|
||||
/// </summary>
|
||||
public static string CSS_URL {
|
||||
get {
|
||||
return ResourceManager.GetString("CSS_URL", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to http://docs.citrix.com/en-us/citrix-hypervisor/whats-new/removed-features.html.
|
||||
/// </summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
@ -120,6 +120,9 @@
|
||||
<data name="CIS_URL" xml:space="preserve">
|
||||
<value>https://cis.citrix.com</value>
|
||||
</data>
|
||||
<data name="CSS_URL" xml:space="preserve">
|
||||
<value>https://www.citrix.com/support/programs/</value>
|
||||
</data>
|
||||
<data name="CLIENT_ID_URL" xml:space="preserve">
|
||||
<value>https://support.citrix.com/xencenterclientiddownload</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user