= e((string)$t['title']) ?>
- = e(\App\Trip::formatSpan($t['starts_at'] ?? null, $t['ends_at'] ?? null)) ?>
-
- 📍 = e((string)$t['location']) ?>
+
+ = e(\App\Trip::activitySpan($t['starts_at'] ?? null, $t['ends_at'] ?? null)) ?>
+
+ 📍 = e((string)$t['city']) ?>
- = (int)($t['node_count'] ?? 0) ?> 段行程
+ = (int)($t['node_count'] ?? 0) ?> 段旅程
= e(mb_substr((string)$t['summary'], 0, 80, 'UTF-8')) ?>
diff --git a/templates/trips/show.php b/templates/trips/show.php
index 9873113..471db38 100644
--- a/templates/trips/show.php
+++ b/templates/trips/show.php
@@ -1,9 +1,15 @@
= e((string)$t['title']) ?>
-
= e(\App\Trip::formatSpan($t['starts_at'] ?? null, $t['ends_at'] ?? null)) ?>
+
+
= e(\App\Trip::activitySpan($t['starts_at'] ?? null, $t['ends_at'] ?? null)) ?>
@@ -50,17 +57,29 @@ $memberIds = array_map('intval', array_column((array)($t['attendees'] ?? []), 'i
-
-
📍 = e((string)$t['location']) ?>
+
+
+
+ $city): ?>
+ = $i > 0 ? '·' : '📍' ?>
+ = e((string)$city) ?>
+
+
= nl2br(e((string)$t['summary'])) ?>
-
-
- = person_chip($a, url('people/show', ['id' => (int)$a['id']])) ?>
-
+
+
+
参与的人(各段行程的合集)
+
+
+ = person_chip($a, url('people/show', ['id' => (int)$a['id']])) ?>
+
+
@@ -110,19 +129,22 @@ $memberIds = array_map('intval', array_column((array)($t['attendees'] ?? []), 'i
-
+ · 实际的会同时上日程 + 往年今日
+ 分三组渲染(未成行放最后,用灰调)。 */ ?>
['计划行程', '还没走,下面的「修正 / 完成 / 标记未成行」都能用'],
- 'actual' => ['实际行程', '已走过 —— 会出现在日历与首页「往年今日」'],
- 'skipped' => ['未成行', '这次计划没成行;不再出现在日程与「往年今日」,但在这里保留可查'],
+ 'plan' => ['计划的旅程', '还没走。每段下面的「修正 / 完成 / 标记未成行」都能用'],
+ 'actual' => ['走过的旅程', '已走过 —— 会出现在日历与首页「往年今日」'],
+ 'skipped' => ['没成行的', '这次没去成;不再出现在日程与「往年今日」,但在这里保留可查'],
];
foreach (['plan', 'actual', 'skipped'] as $sg):
$list = $bysStage[$sg];
@@ -136,7 +158,8 @@ foreach (['plan', 'actual', 'skipped'] as $sg):
- = $sg === 'plan' ? '还没有排计划。' : ($sg === 'actual' ? '还没有走过的行程。' : '没有未成行的计划。') ?>
+ = $sg === 'plan' ? '还没有排计划。点下面的「+ 加一段旅程」,把打算走的地方排进来。'
+ : ($sg === 'actual' ? '还没有走过的旅程。' : '没有未成行的。') ?>
@@ -212,9 +235,9 @@ foreach (['plan', 'actual', 'skipped'] as $sg):
修正
- 记录**实际**执行情况。这仍与上面那条计划是同一条记录,
+ 记录实际执行情况。这仍与上面那条计划是同一条记录,
原来的计划数据会保留在「修正记录」里,方便日后对比。
- 点完这里行程仍是计划;确认无误后再点「标记为实际」。
+ 点完这里这段旅程仍是计划;确认无误后再点「标记为实际」。