Oberfläche nach Durchsicht: Kalender, Suchen, eigene Verwaltungsseiten, gemeinsame Gruppenkontingente
- Übersicht mit Anfragen diesen Monat; Aufzeichnungen mit Key-Name und Präfix - Ollama-API zusätzlich unter /ollama; Endpunkte in der Oberfläche einheitlich - Gruppen & Kontingente nur eigene; Alle Gruppen & Kontingente und Alle Keys für Administratoren, Keys meiner Kontingente für Lecturer, jeweils mit Suche - Kontingentformular: Modelle alle oder ausgewählte (nach Schnittstelle, aus GET /omega/api/models), Wochentage zum Anklicken, Uhrzeit- und Datumsfelder, je Person oder für die Gruppe gemeinsam (Spalte quotas.shared) - Auswahl beim Key-Anlegen zeigt, von wem ein Kontingent kommt - Zeitplan als Wochenkalender wie in den Mockups - Benutzer mit Suche und Ausblenden gesperrter Konten - Audit-Log mit deutschen Bezeichnungen, verständlichen Details und Suche - Gültigkeit um Mitternacht als "bis einschließlich"; start.sh wartet auf die Engines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d753fd9285
commit
11dbc1c781
18 files changed
+805
-164
No files matched your search
+27
-3
@@ -140,6 +140,22 @@ fn fmt_ts(ts: i64) -> String {
|
||||
Local.timestamp_opt(ts, 0).single().map(|t| t.format(format).to_string()).unwrap_or_default()
|
||||
}
|
||||
|
||||
/// Ein Beginn um Mitternacht ist ein ganzer Tag: "2026-10-01" statt "2026-10-01 00:00".
|
||||
fn fmt_from(ts: i64) -> String {
|
||||
match Local.timestamp_opt(ts, 0).single() {
|
||||
Some(t) if t.time() == NaiveTime::MIN => t.format("%Y-%m-%d").to_string(),
|
||||
_ => fmt_ts(ts),
|
||||
}
|
||||
}
|
||||
|
||||
/// Ein Ende um Mitternacht schließt den Vortag ein: "bis einschließlich 2027-02-15".
|
||||
fn fmt_until(ts: i64) -> String {
|
||||
match Local.timestamp_opt(ts, 0).single() {
|
||||
Some(t) if t.time() == NaiveTime::MIN => format!("einschließlich {}", (t - Duration::days(1)).format("%Y-%m-%d")),
|
||||
_ => fmt_ts(ts),
|
||||
}
|
||||
}
|
||||
|
||||
impl Weekly {
|
||||
fn overnight(&self) -> bool {
|
||||
self.end < self.start
|
||||
@@ -210,9 +226,9 @@ impl TimeSpec {
|
||||
parts.push(format!("wöchentlich {} {}-{}", days_str(&w.days), w.start.format("%H:%M"), w.end.format("%H:%M")));
|
||||
}
|
||||
match (self.from, self.until) {
|
||||
(Some(f), Some(u)) => parts.push(format!("{} bis {}", fmt_ts(f), fmt_ts(u))),
|
||||
(Some(f), None) => parts.push(format!("ab {}", fmt_ts(f))),
|
||||
(None, Some(u)) => parts.push(format!("bis {}", fmt_ts(u))),
|
||||
(Some(f), Some(u)) => parts.push(format!("{} bis {}", fmt_from(f), fmt_until(u))),
|
||||
(Some(f), None) => parts.push(format!("ab {}", fmt_from(f))),
|
||||
(None, Some(u)) => parts.push(format!("bis {}", fmt_until(u))),
|
||||
(None, None) if self.weekly.is_none() => parts.push("dauerhaft".into()),
|
||||
(None, None) => {}
|
||||
}
|
||||
@@ -233,6 +249,14 @@ impl Entry {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn kind_label(&self) -> &'static str {
|
||||
match self.kind {
|
||||
Kind::Pin { .. } => "Pin",
|
||||
Kind::Exclusive { .. } => "Exklusive Nutzung",
|
||||
Kind::Window { .. } => "Modellzeitfenster",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn subject(&self) -> String {
|
||||
match &self.kind {
|
||||
Kind::Pin { node, engine, model } => format!("{engine}/{model} auf {node}"),
|
||||
|
||||
Reference in new issue
Block a user