diff --git a/src/main/java/ru/ulstu/extractor/controller/StatisticController.java b/src/main/java/ru/ulstu/extractor/controller/StatisticController.java index 95522e8..bb53b62 100644 --- a/src/main/java/ru/ulstu/extractor/controller/StatisticController.java +++ b/src/main/java/ru/ulstu/extractor/controller/StatisticController.java @@ -41,6 +41,12 @@ public class StatisticController { date[i] = timeCommits.get(i)[0].toString(); } model.addAttribute("datas", date); + String[] url = new String[urlCommits.size()]; + for (int i = 0; i < urlCommits.size(); i++) { + url[i] = urlCommits.get(i)[0].toString(); + } + model.addAttribute("urls", url); + return "statistic"; } } diff --git a/src/main/resources/templates/statistic.html b/src/main/resources/templates/statistic.html index 1238e75..7888244 100644 --- a/src/main/resources/templates/statistic.html +++ b/src/main/resources/templates/statistic.html @@ -12,52 +12,6 @@
- - - + +
-
-
+
+