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' apply plugin: 'application'
group = 'de.jottyfan.camporganizer' group = 'de.jottyfan.camporganizer'
version = '0.0.4' version = '0.0.5'
sourceCompatibility = 17 sourceCompatibility = 17
mainClassName = "de.jottyfan.camporganizer.Main" mainClassName = "de.jottyfan.camporganizer.Main"

View File

@ -8,6 +8,23 @@ body {
rgb(198, 70, 0)); 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 { .mainpage {
background-color: rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.4);
padding: 8px; padding: 8px;
@ -36,7 +53,7 @@ body {
.topright { .topright {
position: fixed; position: fixed;
right: 8px; right: 40px;
top: 8px; top: 8px;
} }

View File

@ -20,15 +20,15 @@
<body> <body>
<div class="myheadline"> <div class="myheadline">
<div class="topright linkbtn"> <div class="topright linkbtn">
<span th:if="${not #strings.isEmpty(currentUser)}"> <span th:if="${not #strings.isEmpty(currentUser)}"> <b th:inline="text">[[${currentUser}]]</b> <a th:href="@{/logout}">ausloggen</a>
<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>
<span th:if="${#strings.isEmpty(currentUser)}">
<a th:href="@{/dashboard}">einloggen</a>
</span> </span>
</div> </div>
<span th:replace="${header}">Layout header</span> <span th:replace="${header}">Layout header</span>
</div> </div>
<div th:replace="${content}">Layout content</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> </body>
</html> </html>