feat: Status der Modelle als Symbol, Tabelle schmaler; Version 0.1.15-rc4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -270,20 +270,17 @@ fn models_table(state: &AppState, viewer: &Viewer) -> String {
|
||||
),
|
||||
(None, None) => "<span class=\"muted\">–</span>".to_string(),
|
||||
};
|
||||
let status_text = if m.enabled { "freigegeben" } else { "gesperrt" };
|
||||
let row_id = format!("modell-{}", dialog_id(&m.name));
|
||||
format!(
|
||||
"<tr id=\"{row_id}\"><td class=\"name\">{}</td><td>{}</td><td>{}</td>{faehig}<td>{}</td><td class=\"num\"{context_attr}>{context}</td>\
|
||||
"<tr id=\"{row_id}\"><td class=\"name\">{}</td><td>{}</td><td data-sort=\"{status_text}\">{}</td>{faehig}<td>{}</td><td class=\"num\"{context_attr}>{context}</td>\
|
||||
<td class=\"num\"{memory_attr}>{memory}</td><td>{}</td><td>{}</td><td data-sort=\"{state_sort}\">{state_chip}</td>{actions}</tr>",
|
||||
esc(&m.name),
|
||||
m.engine
|
||||
.as_ref()
|
||||
.map(|e| format!("<span class=\"chip\">{}</span>", esc(e)))
|
||||
.unwrap_or_else(|| "–".to_string()),
|
||||
if m.enabled {
|
||||
"<span class=\"chip ok\">freigegeben</span>"
|
||||
} else {
|
||||
"<span class=\"chip error\">gesperrt</span>"
|
||||
},
|
||||
super::faehigkeiten::freigabe(m.enabled),
|
||||
if m.gpus.is_empty() {
|
||||
"–".to_string()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user