Compare commits

...

3 Commits

Author SHA1 Message Date
c1035161db Build 0.0.28 2020-03-07 04:42:34 +01:00
a7612aae3d Added an about page. 2020-03-07 04:40:56 +01:00
c7d1381d9b Fixed agir all issues link. 2020-03-07 02:20:53 +01:00
5 changed files with 52 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Fri Mar 06 14:21:17 CET 2020
build.number=28
#Sat Mar 07 04:42:26 CET 2020
build.number=29

View File

@ -211,6 +211,7 @@ public class AgirStatool
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/index.html"), new File(this.targetDirectory, "index.html"));
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/agirstatool.css"), new File(this.targetDirectory, "agirstatool.css"));
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/Chart.bundle.min.js"), new File(this.targetDirectory, "Chart.bundle.min.js"));
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/about.xhtml"), new File(this.targetDirectory, "about.xhtml"));
}
//

View File

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

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Agir Statool</title>
<meta charset="UTF-8" />
<meta content="April" name="keywords" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="agirstatool.css" />
<script src="/commons/sorttable.js" />
<script src="Chart.bundle.min.js"></script>
</head>
<body>
<div style="margin: 5px 10px 10px 10px;">
<h1><a href="index.xhtml">Agir Statool</a><sup id="versionsup" style="font-size: 9px;">v0.0.14</sup> <a id="" href="about.xhtml">About</a></h1>
<h2>Introduction</h2>
<p>AgirStatool is a simple statistic tool software for the April Redmine instance:</p>
<ul>
<li><a href="https://agir.april.org/">https://agir.april.org/</a></li>
</ul>
<h2>Tips</h2>
<p>Some tips:</p>
<ul>
<li>full charts: the default full chart view displays only one chart. To see another full charts, you have to click on it.</li>
<li>refresh delay: waiting for an update? Concerned pages are rebuild every 5 minutes.</li>
</ul>
<h2>License and source repository</h2>
<p>The original author of AgirStatool is Christian P. MOMON.</p>
<p>Agir Statool is a free software released under the GNU AGPL license.</p>
<p>The official source repository is the April forge:</p>
<ul>
<li><a href="https://forge.april.org/adminsys/agirstatool">https://forge.april.org/adminsys/agirstatool</a></li>
</ul>
</div>
</body>
</html>

View File

@ -12,7 +12,7 @@
</head>
<body>
<div style="margin: 5px 10px 10px 10px;">
<h1><a href="index.xhtml">Agir Statool</a><sup id="versionsup" style="font-size: 9px;">v0.0.14</sup> <a id="projectName" href="#">n/a</a> <a id="agirLink" href="#">Link to Agir</a></h1>
<h1><a href="index.xhtml">Agir Statool</a><sup id="versionsup" style="font-size: 9px;">v0.0.14</sup> <a id="projectName" href="#">n/a</a> <a id="agirLink" href="#">Link to Agir</a> <a href="about.xhtml">About</a></h1>
<div id="mainCharts">
<div style="margin: 5px;">
<a id="createClose3MonthsButton" href="#" class="button" onclick="javascript:createClosedSelect('3months');">3 months</a>