Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-D3kejVbr.js
Friederich Loheide 443599b739
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 8m42s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 7m39s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 12m30s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 17m0s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m43s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 24m25s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 11m16s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 3m39s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m17s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m40s
Pflichtlektüre für Neuigkeiten (0.59.0)
Beiträge mit Lesebestätigung (namentlich), Frist, Aufgabe und Feed-Hinweis;
Auswertung für die Redaktion (bestätigt von / wer fehlt).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 15:16:16 +00:00

1 line
No EOL
2.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{At as e,P as t,W as n}from"./ui-DY0WbyhT.js";import{At as r,C as i,Dt as a,E as o,O as s,S as c,T as l,Tt as u,Y as d,i as f,k as p,o as m,ot as h,q as g,rt as _,v,w as y}from"./framework-Cy4cevSy.js";import{t as b}from"./plus-BkVfuiNS.js";import{N as x,c as S,d as C,l as w,u as T,w as E}from"./app-CKWdzB9k.js";var D={class:`grid gap-6 lg:grid-cols-3`},O={key:0,class:`-mx-5 -mb-5 divide-y border-t`},k={class:`min-w-0 flex-1`},A={class:`block font-medium`},j={class:`block text-xs text-muted-foreground`},M={key:0,class:`shrink-0 text-xs text-muted-foreground`},N={key:1,class:`shrink-0 rounded-md bg-brand px-2.5 py-1 text-xs font-medium text-brand-foreground`},P={key:0,class:`-mx-5 -mb-5 divide-y border-t`},F={class:`block text-sm font-medium`},I={class:`block text-xs text-muted-foreground`},L={key:1,class:`text-sm text-muted-foreground`},R={__name:`Index`,props:{open:{type:Array,required:!0},closed:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(R){let z=m();return _(()=>z.props.flash.status,e=>e&&n.success(e),{immediate:!0}),(n,m)=>(g(),i(T,{title:`Umfragen`},{default:h(()=>[p(C,{title:`Umfragen`,description:`Ihre Meinung ist gefragt – Abstimmungen und Umfragen im Haus.`},o({_:2},[R.canManage?{name:`actions`,fn:h(()=>[p(u(t),{"as-child":``},{default:h(()=>[p(u(f),{href:`/redaktion/umfragen/neu`},{default:h(()=>[p(u(b)),m[0]||=s(` Neue Umfrage`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),c(`div`,D,[p(w,{title:`Laufende Umfragen`,class:`lg:col-span-2`},{default:h(()=>[R.open.length?(g(),l(`ul`,O,[(g(!0),l(v,null,d(R.open,t=>(g(),l(`li`,{key:t.id},[p(u(f),{href:t.url,class:`flex items-center gap-4 px-5 py-4 hover:bg-accent/40`},{default:h(()=>[c(`span`,{class:a([`grid size-10 shrink-0 place-items-center rounded-md`,t.voted?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[t.voted?(g(),i(u(e),{key:0,class:`size-5`})):(g(),i(u(x),{key:1,class:`size-5`}))],2),c(`span`,k,[c(`span`,A,r(t.title),1),c(`span`,j,[s(r(t.questions_count)+` `+r(t.questions_count===1?`Frage`:`Fragen`),1),t.closes_at?(g(),l(v,{key:0},[s(` · bis `+r(u(E)(t.closes_at)),1)],64)):y(``,!0)])]),t.voted?(g(),l(`span`,M,`Teilgenommen`)):(g(),l(`span`,N,`Mitmachen`))]),_:2},1032,[`href`])]))),128))])):(g(),i(S,{key:1,icon:u(x),title:`Gerade läuft keine Umfrage`,class:`py-8`},null,8,[`icon`]))]),_:1}),p(w,{title:`Beendet`,class:`content-start`},{default:h(()=>[R.closed.length?(g(),l(`ul`,P,[(g(!0),l(v,null,d(R.closed,e=>(g(),l(`li`,{key:e.id},[p(u(f),{href:e.url,class:`block px-5 py-3 hover:bg-accent/40`},{default:h(()=>[c(`span`,F,r(e.title),1),c(`span`,I,`beendet am `+r(u(E)(e.closes_at)),1)]),_:2},1032,[`href`])]))),128))])):(g(),l(`p`,L,`Noch keine beendeten Umfragen.`))]),_:1})])]),_:1}))}};export{R as default};