Neue Version in den Header
This commit is contained in:
@@ -976,6 +976,20 @@ table input[type="text"] {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.employee-new-version-warning {
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
padding: 2px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: #e74c3c;
|
||||
background-color: #fee;
|
||||
border: 1px solid #e74c3c;
|
||||
border-radius: 999px;
|
||||
vertical-align: middle;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.employee-details {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
|
||||
@@ -105,8 +105,12 @@ function registerVerwaltungRoutes(app) {
|
||||
return new Date(b.week_start) - new Date(a.week_start);
|
||||
});
|
||||
|
||||
// Flag: Gibt es in irgendeiner Woche eine neue Version nach Download?
|
||||
const hasNewVersionAfterDownload = sortedWeeks.some(w => w.has_new_version_after_download);
|
||||
|
||||
return {
|
||||
...employee,
|
||||
has_new_version_after_download: hasNewVersionAfterDownload,
|
||||
weeks: sortedWeeks
|
||||
};
|
||||
}).sort((a, b) => {
|
||||
|
||||
@@ -85,6 +85,9 @@
|
||||
<% if (employee.user.personalnummer) { %>
|
||||
<span style="margin-left: 10px; color: #666;">(Personalnummer: <%= employee.user.personalnummer %>)</span>
|
||||
<% } %>
|
||||
<% if (employee.has_new_version_after_download) { %>
|
||||
<span class="employee-new-version-warning">ACHTUNG: Neue version eingereicht</span>
|
||||
<% } %>
|
||||
</div>
|
||||
<div class="employee-details" style="margin-top: 10px;">
|
||||
<div style="display: inline-block; margin-right: 20px;">
|
||||
|
||||
Reference in New Issue
Block a user