|
22 | 22 | import org.labkey.api.data.Container;
|
23 | 23 | import org.labkey.api.jsp.JspBase;
|
24 | 24 | import org.labkey.api.util.DateUtil;
|
| 25 | +import org.labkey.api.util.HtmlString; |
| 26 | +import org.labkey.api.util.HtmlStringBuilder; |
25 | 27 | import org.labkey.api.util.PageFlowUtil;
|
26 | 28 | import org.labkey.api.util.StringUtilsLabKey;
|
27 | 29 | import org.labkey.api.view.ActionURL;
|
@@ -188,25 +190,28 @@ else if (variables.get(key) instanceof Date)
|
188 | 190 |
|
189 | 191 | }
|
190 | 192 |
|
191 |
| - public String navigationLinks(@Nullable String processDefinitionName, @NotNull String processDefinitionKey, @Nullable String processInstanceId) |
| 193 | + public HtmlString navigationLinks(@Nullable String processDefinitionName, @NotNull String processDefinitionKey, @Nullable String processInstanceId) |
192 | 194 | {
|
193 |
| - StringBuilder builder = new StringBuilder(); |
| 195 | + HtmlStringBuilder builder = HtmlStringBuilder.of(); |
| 196 | + |
194 | 197 | builder.append(PageFlowUtil.link("All workflows").href(new ActionURL(WorkflowController.BeginAction.class, getContainer())));
|
195 |
| - builder.append("\n \n"); |
| 198 | + builder.append(HtmlString.NBSP).append(HtmlString.NBSP); |
196 | 199 | if (processDefinitionName != null)
|
197 | 200 | {
|
198 | 201 | builder.append(PageFlowUtil.link(processDefinitionName).href(new ActionURL(WorkflowController.SummaryAction.class, getContainer()).addParameter("processDefinitionKey", processDefinitionKey)));
|
199 |
| - builder.append("\n \n"); |
| 202 | + builder.append(HtmlString.NBSP).append(HtmlString.NBSP); |
| 203 | + |
200 | 204 | }
|
201 | 205 | builder.append(PageFlowUtil.link("Process instance list").href(new ActionURL(WorkflowController.InstanceListAction.class, getContainer()).addParameter("processDefinitionKey", processDefinitionKey)));
|
202 |
| - builder.append("\n \n"); |
| 206 | + builder.append(HtmlString.NBSP).append(HtmlString.NBSP); |
| 207 | + |
203 | 208 | if (processInstanceId != null)
|
204 | 209 | {
|
205 | 210 | builder.append(PageFlowUtil.link("This Process Instance").href(new ActionURL(WorkflowController.ProcessInstanceAction.class, getContainer()).addParameter("processInstanceId", processInstanceId)));
|
206 |
| - builder.append("\n \n"); |
| 211 | + builder.append(HtmlString.NBSP).append(HtmlString.NBSP); |
207 | 212 | }
|
208 | 213 | builder.append(PageFlowUtil.link("My tasks").href(new ActionURL(WorkflowController.TaskListAction.class, getContainer()).addParameter("processDefinitionKey", processDefinitionKey).addParameter("assignee", getUser().getUserId())));
|
209 | 214 |
|
210 |
| - return builder.toString(); |
| 215 | + return builder.getHtmlString(); |
211 | 216 | }
|
212 | 217 | }
|
0 commit comments