← Back to the site changelog
Site Changelog
Original commit record
Replace unavailable disruption totals with public statistics link (#168)
- SHA
f2a00048300a42bf6057f6e5e240127f27606669
- Commit date
- Author
- nnneeeooo-nnneeeooo
- Committer
- web-flow
Changed files (1)
-
templates/home.html
modified · +7 / −13
Full diff
@@ -100,26 +100,20 @@ <h6 style="margin:0;"><a href="{{ news_url }}" style="color:inherit;text-decorat\n <div class="rail-right">\n <h6 style="margin:0 0 12px;">{{ t.today }}</h6>\n <div style="display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--color-divider);">\n- <a class="radar-stat-link" href="{{ radar_url }}" style="padding:12px;border-right:1px solid var(--color-divider);border-bottom:1px solid var(--color-divider);">\n+ <a class="radar-stat-link" href="{{ radar_url }}" style="padding:12px;border-right:1px solid var(--color-divider);">\n <div class="stat-value" style="font-size:24px;font-weight:800;color:var(--color-accent);letter-spacing:-.02em;">{{ stats.radar }}</div>\n <div class="text-muted" style="font-size:11px;">{{ t.statRadar }}</div>\n </a>\n- <div style="padding:12px;border-bottom:1px solid var(--color-divider);">\n- <div class="stat-value{% if not stats.delay_available %} stat-unavailable{% endif %}" style="font-size:24px;font-weight:800;letter-spacing:-.02em;">{{ stats.delay }}</div>\n- <div class="text-muted" style="font-size:11px;">{{ t.statDelay }}</div>\n- </div>\n- <a class="radar-stat-link" href="{{ incidents_week_url }}" aria-label="{{ t.incWeeklySerious }}:{{ stats.serious }} {{ t.incCountLabel }}" style="padding:12px;border-right:1px solid var(--color-divider);">\n+ <a class="radar-stat-link" href="{{ incidents_week_url }}" aria-label="{{ t.incWeeklySerious }}:{{ stats.serious }} {{ t.incCountLabel }}" style="padding:12px;">\n <div class="stat-value{% if not stats.serious_available %} stat-unavailable{% endif %}" style="font-size:24px;font-weight:800;letter-spacing:-.02em;">{{ stats.serious }}</div>\n <div class="text-muted" style="font-size:11px;">{{ t.statSerious }}</div>\n </a>\n- <div style="padding:12px;">\n- <div class="stat-value{% if not stats.cancellations_available %} stat-unavailable{% endif %}" style="font-size:24px;font-weight:800;letter-spacing:-.02em;">{{ stats.cancellations }}</div>\n- <div class="text-muted" style="font-size:11px;">{{ t.statCancelled }}</div>\n- </div>\n+ <a class="radar-stat-link" href="https://www.flightaware.com/live/cancelled/today/" target="_blank" rel="noopener noreferrer" style="grid-column:1 / -1;padding:12px;border-top:1px solid var(--color-divider);">\n+ <div style="font-size:14px;font-weight:800;">{% if html_lang.startswith('zh') %}全球延誤與取消{% else %}Worldwide delays and cancellations{% endif %}</div>\n+ <div style="font-size:13px;margin-top:4px;color:var(--color-accent);">{% if html_lang.startswith('zh') %}查看即時統計{% else %}View live statistics{% endif %} ↗</div>\n+ <div class="text-muted" style="font-size:11px;margin-top:4px;">{% if html_lang.startswith('zh') %}前往 FlightAware 查看(另開分頁){% else %}View on FlightAware (opens in a new tab){% endif %}</div>\n+ </a>\n </div>\n- {% if stats_note %}\n- <p class="stats-note text-muted">{{ stats_note }}</p>\n- {% endif %}\n {% if otp %}\n <h6 style="margin:28px 0 12px;">{{ t.otp }}</h6>\n {% for r in otp %}