Browse Source

Fixed agir all issues link.

master
Christian P. MOMON 2 years ago
parent
commit
c7d1381d9b
  1. 10
      src/org/april/agirstatool/core/pages/ProjectPage.java

10
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);

Loading…
Cancel
Save