Skip to content

Commit

Permalink
added runtime version to about page
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kuba committed May 17, 2022
1 parent 1f8a568 commit 5d626cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/cz/muni/aphos/controllers/AboutController.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cz.muni.aphos.controllers;

import cz.muni.aphos.AphosApplication;
import cz.muni.aphos.dao.FluxDao;
import cz.muni.aphos.dao.SpaceObjectDao;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -31,6 +32,7 @@ public String showAboutPage(Model model) {
String objectNumberFormatted = String.format("%,d", spaceObjectDao.getNumberOfObjectsEstimate());
model.addAttribute("fluxNum", fluxNumberFormatted);
model.addAttribute("objectNum", objectNumberFormatted);
model.addAttribute("version", AphosApplication.class.getPackage().getImplementationVersion());
return "about";
}
}
1 change: 1 addition & 0 deletions src/main/resources/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ <h4 id="presentation">Fluxes presentation</h4>
<h2 id="project">Project</h2>
<p>The app's initial version was developed in 2021/22 as part of a bachelor's
thesis in cooperation with Pavel Cagaš and Miloslav Zejda. </p>
<p>Runtime version: <th:block th:text="${version}">1.0.0</th:block></p>
<h2 id="ack">Acknowledgements</h2>
<p>The website's look is provided by:</p>
<ul>
Expand Down

0 comments on commit 5d626cf

Please sign in to comment.