mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 02:27:43 +01:00
Update notification now displays the version number
This commit is contained in:
parent
f9c55850de
commit
bdfd441008
@ -106,7 +106,7 @@ public class VersionCheckSystem implements SubSystem {
|
||||
public Optional<String> getUpdateHtml() {
|
||||
return getNewVersionAvailable()
|
||||
.map(v -> v.isTrusted() ? "<a href=\"" + v.getChangeLogUrl() + "\" target=\"_blank\">" +
|
||||
"<h4 class=\"col-green\"><i class=\"" + (v.isRelease() ? "fa fa-download" : "fab fa-dev") + "\"></i> Update available!</h4></a>" : "");
|
||||
"<h4 class=\"col-green\"><i class=\"" + (v.isRelease() ? "fa fa-download" : "fab fa-dev") + "\"></i> v" + v.getVersion().getVersionString() + " available!</h4></a>" : "");
|
||||
}
|
||||
|
||||
public String getCurrentVersion() {
|
||||
|
Loading…
Reference in New Issue
Block a user