From c7d1381d9b0b737e612059ab1f3d1f920692c23b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 7 Mar 2020 02:20:53 +0100 Subject: [PATCH] Fixed agir all issues link. --- src/org/april/agirstatool/core/pages/ProjectPage.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/org/april/agirstatool/core/pages/ProjectPage.java b/src/org/april/agirstatool/core/pages/ProjectPage.java index fab92c3..fde0ffd 100644 --- a/src/org/april/agirstatool/core/pages/ProjectPage.java +++ b/src/org/april/agirstatool/core/pages/ProjectPage.java @@ -20,6 +20,7 @@ package org.april.agirstatool.core.pages; import java.time.LocalDate; +import org.apache.commons.lang3.StringUtils; import org.april.agirstatool.core.AgirStatoolException; import org.april.agirstatool.core.Project; import org.slf4j.Logger; @@ -60,7 +61,14 @@ public class ProjectPage data.setContent("projectName", "Project " + project.getName()); data.setAttribute("projectName", "href", project.getPath()); - data.setAttribute("agirLink", "href", "https://agir.april.org/projects/" + project.getIdentifier() + "/issues"); + if (StringUtils.equals(project.getIdentifier(), "all")) + { + data.setAttribute("agirLink", "href", "https://agir.april.org/issues"); + } + else + { + data.setAttribute("agirLink", "href", "https://agir.april.org/projects/" + project.getIdentifier() + "/issues"); + } data.setContent("versionsup", BuildInformation.instance().version()); data.setContent("createClosePreviousYearButton", LocalDate.now().getYear() - 1);