mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Refactored links management UI following link validation service API changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6024 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -93,7 +93,7 @@ public class UILinkValidationSummary extends AbstractLinkValidationReportCompone
|
||||
{
|
||||
String pattern = bundle.getString("files_links_still_broken");
|
||||
String stillBroken = MessageFormat.format(pattern,
|
||||
new Object[] {linkState.getNumberBrokenFiles(), linkState.getNumberBrokenLinks()});
|
||||
new Object[] {linkState.getNumberBrokenLinks(), linkState.getNumberBrokenFiles()});
|
||||
pattern = bundle.getString("broken_links_fixed");
|
||||
String linksFixed = MessageFormat.format(pattern,
|
||||
new Object[] {linkState.getNumberFixedLinks()});
|
||||
@@ -161,7 +161,7 @@ public class UILinkValidationSummary extends AbstractLinkValidationReportCompone
|
||||
linkState.getInitialNumberLinksChecked()});
|
||||
pattern = bundle.getString("files_links_broken");
|
||||
String initialBrokenSummary = MessageFormat.format(pattern,
|
||||
new Object[] {linkState.getInitialNumberBrokenFiles(), linkState.getInitialNumberBrokenLinks()});
|
||||
new Object[] {linkState.getInitialNumberBrokenLinks(), linkState.getInitialNumberBrokenFiles()});
|
||||
|
||||
out.write("<div style='margin-bottom: 6px;'>");
|
||||
out.write(initialCheckSummary);
|
||||
|
@@ -375,9 +375,14 @@ public class UIUserSandboxes extends SelfRenderingComponent
|
||||
out.write(")</td><td><nobr>");
|
||||
|
||||
// Direct actions for a sandbox...
|
||||
Map<String, String> params = new HashMap<String, String>(3);
|
||||
params.put("store", mainStore);
|
||||
params.put("username", username);
|
||||
params.put("webapp", this.getWebapp());
|
||||
params.put("compareToStaging", "true");
|
||||
Utils.encodeRecursive(context, aquireAction(
|
||||
context, mainStore, username, ACT_SANDBOX_CHECK_LINKS, "/images/icons/run_link_validation.gif",
|
||||
"#{DialogManager.setupParameters}", "dialog:runLinkValidation"));
|
||||
"#{DialogManager.setupParameters}", "dialog:runLinkValidation", null, params));
|
||||
out.write(" ");
|
||||
|
||||
// Browse Sandbox
|
||||
|
Reference in New Issue
Block a user