linked version

This commit is contained in:
Jottyfan 2022-10-15 18:37:52 +02:00
parent f49fb7edab
commit cde060559e
3 changed files with 24 additions and 7 deletions

View File

@ -18,7 +18,7 @@ apply plugin: 'war'
apply plugin: 'application'
group = 'de.jottyfan.camporganizer'
version = '0.0.4'
version = '0.0.5'
sourceCompatibility = 17
mainClassName = "de.jottyfan.camporganizer.Main"

View File

@ -8,6 +8,23 @@ body {
rgb(198, 70, 0));
}
.versionclip {
transform: rotate(270deg);
margin-top: 20px;
position: fixed;
top: 8px;
right: -32px;
font-size: smaller;
padding: 8px;
background-image: linear-gradient(to bottom, rgb(154, 153, 150), #fff);
border-radius: 6px;
}
.versionlink {
color: #333;
text-decoration: none;
}
.mainpage {
background-color: rgba(255, 255, 255, 0.4);
padding: 8px;
@ -36,7 +53,7 @@ body {
.topright {
position: fixed;
right: 8px;
right: 40px;
top: 8px;
}

View File

@ -20,15 +20,15 @@
<body>
<div class="myheadline">
<div class="topright linkbtn">
<span th:if="${not #strings.isEmpty(currentUser)}">
<b th:inline="text">[[${currentUser}]]</b> aus Version <span th:text="${@manifestBean.getVersion()}"></span> <a th:href="@{/logout}">ausloggen</a>
</span>
<span th:if="${#strings.isEmpty(currentUser)}">
<a th:href="@{/dashboard}">einloggen</a>
<span th:if="${not #strings.isEmpty(currentUser)}"> <b th:inline="text">[[${currentUser}]]</b> <a th:href="@{/logout}">ausloggen</a>
</span> <span th:if="${#strings.isEmpty(currentUser)}"> <a th:href="@{/dashboard}">einloggen</a>
</span>
</div>
<span th:replace="${header}">Layout header</span>
</div>
<div th:replace="${content}">Layout content</div>
<div class="versionclip">
<a href="https://gitlab.com/jottyfan/camporganizer2/-/issues" class="versionlink" target="_blank" th:text="${'Version ' + @manifestBean.getVersion()}"></a>
</div>
</body>
</html>