diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 9b596e2..259d1d2 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -316,17 +316,17 @@ const activePubcomments = pubcomments.filter((p) => key >= p.from && key <= p.to); let pubcommentHtml = ''; if (activePubcomments.length) { - const until = activePubcomments - .map((p) => p.to) - .sort() - .slice(-1)[0]; - const [, untilMonth, untilDay] = until.split('-').map(Number); + // 締切は案件ごとに違うので、見出しには日付を出さず、各項目に締切を添える。 + const deadline = (iso) => { + const [, month, day] = iso.split('-').map(Number); + return `${month}月${day}日`; + }; pubcommentHtml = `<div class="schedule-day-pubcomment"> - <p class="schedule-day-pubcomment-title">📝 パブリックコメント受付中(${untilMonth}月${untilDay}日まで)</p> + <p class="schedule-day-pubcomment-title">📝 パブリックコメント受付中</p> <ul>${activePubcomments .map( (p) => - `<li><a class="schedule-day-pubcomment-link" href="${p.url}" target="_blank" rel="noopener noreferrer">${escapeHtml(p.title)}</a><span class="schedule-day-meta">${escapeHtml(p.contact)}</span></li>`, + `<li><a class="schedule-day-pubcomment-link" href="${p.url}" target="_blank" rel="noopener noreferrer">${escapeHtml(p.title)}</a><span class="schedule-day-meta">${deadline(p.to)}まで/${escapeHtml(p.contact)}</span></li>`, ) .join('')}</ul> </div>`; |
