From baf91fb9f8ce918c3c10e89710605176539136ed Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 11 Jul 2026 20:27:16 +0900 Subject: recap mail: remove price column, make title a link Co-Authored-By: Claude Sonnet 4.6 --- scripts/send-recap.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/send-recap.ts b/scripts/send-recap.ts index 3dcdd08..b41059c 100644 --- a/scripts/send-recap.ts +++ b/scripts/send-recap.ts @@ -113,18 +113,15 @@ a:hover{text-decoration:underline} return head + `

本日のイベントはまだ登録されていません。

`; } - let body = `\n\n`; + let body = `
会場アーティスト / タイトル開演料金リンク
\n\n`; for (const e of events) { - const nameCell = e.artist + const url = e.ticket_url ?? e.source_url; + const inner = e.artist ? `${esc(e.artist)}
${esc(e.title)}` : `${esc(e.title)}`; + const nameCell = url ? `${inner}` : inner; const time = e.start_time ? esc(e.start_time) : `-`; - const price = e.price ? esc(e.price) : `-`; - const url = e.ticket_url ?? e.source_url; - const link = url - ? `詳細` - : `-`; - body += `\n`; + body += `\n`; } body += `
会場アーティスト / タイトル開演
${esc(e.venue_name)}${nameCell}${time}${price}${link}
${esc(e.venue_name)}${nameCell}${time}
\n`; body += `\n`; -- cgit v1.2.3