summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-07-11 20:27:16 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-07-11 20:27:16 +0900
commitbaf91fb9f8ce918c3c10e89710605176539136ed (patch)
tree41cb21bdd20b261cfa16974781df43e4ba37f05b
parent55bb044b7deadd1fe5055078274651ce6402589f (diff)
recap mail: remove price column, make title a link
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--scripts/send-recap.ts13
1 files 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 + `<p>本日のイベントはまだ登録されていません。</p></body></html>`;
}
- let body = `<table>\n<tr><th>会場</th><th>アーティスト / タイトル</th><th>開演</th><th>料金</th><th>リンク</th></tr>\n`;
+ let body = `<table>\n<tr><th>会場</th><th>アーティスト / タイトル</th><th>開演</th></tr>\n`;
for (const e of events) {
- const nameCell = e.artist
+ const url = e.ticket_url ?? e.source_url;
+ const inner = e.artist
? `<span class="artist">${esc(e.artist)}</span><br><span class="sub">${esc(e.title)}</span>`
: `<span class="sub">${esc(e.title)}</span>`;
+ const nameCell = url ? `<a href="${esc(url)}">${inner}</a>` : inner;
const time = e.start_time ? esc(e.start_time) : `<span class="none">-</span>`;
- const price = e.price ? esc(e.price) : `<span class="none">-</span>`;
- const url = e.ticket_url ?? e.source_url;
- const link = url
- ? `<a href="${esc(url)}">詳細</a>`
- : `<span class="none">-</span>`;
- body += `<tr><td>${esc(e.venue_name)}</td><td>${nameCell}</td><td>${time}</td><td>${price}</td><td>${link}</td></tr>\n`;
+ body += `<tr><td>${esc(e.venue_name)}</td><td>${nameCell}</td><td>${time}</td></tr>\n`;
}
body += `</table>\n`;
body += `<p class="footer">${events.length} 件 ・ <a href="${esc(pageUrl)}">一覧ページで開く</a></p>\n`;