Projektseite: Kacheln wie in der Vorabansicht (0.6.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -344,7 +344,7 @@ async function projektSeite(id: string): Promise<void> {
|
||||
const anteil = soll ? Math.round((ist / soll) * 100) : null;
|
||||
const adresse = ortZeile(p);
|
||||
ziel.innerHTML = `<div class="uebersicht-kacheln">
|
||||
${kachel("stunden", "Arbeitsstunden", `<div class="stunden"><div><p class="gross">${stundenText(ist)}</p><p class="hinweis">von ${soll ? stundenText(soll) : "– Std."} geplant</p></div>
|
||||
${kachel("stunden", "Arbeitsstunden", `<div class="stunden"><div><p class="gross">${stundenText(ist)}</p><p>/ ${soll ? stundenText(soll) : "0:00 Std."}</p></div>
|
||||
<svg class="ring" viewBox="0 0 36 36" role="img" aria-label="${anteil === null ? "keine Stunden geplant" : `${anteil} Prozent verbraucht`}"><circle cx="18" cy="18" r="15.5"/>${anteil ? `<circle class="wert" cx="18" cy="18" r="15.5" pathLength="100" stroke-dasharray="${Math.min(100, anteil)} 100"/>` : ""}<text x="18" y="21.5">${anteil === null ? "– %" : `${anteil} %`}</text></svg></div>
|
||||
<p class="hinweis">Ist-Stunden kommen mit der Zeiterfassung.</p>`)}
|
||||
${kachel("kunde", "Kunde", kunde
|
||||
|
||||
Reference in New Issue
Block a user