Skip to content

Commit aeaad79

Browse files
committed
departstrip: Reorder DepartureView configuration for clarity
1 parent d347536 commit aeaad79

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

usermods/usermod_v2_departstrip/departure_view.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,14 @@ void DepartureView::view(std::time_t now, const DepartModel &model) {
123123
}
124124

125125
void DepartureView::appendConfigData(Print &s, const DepartModel *model) {
126-
// Placeholder for UI helpers (e.g., show recent LineRefs)
126+
// Segment hint plus trailing stats rendered via addInfo helpers
127127
s.print(F("addInfo('DepartStrip:"));
128128
s.print(configKey());
129-
s.print(F(":SegmentId',1,'<div style=\\'margin-top:12px;\\'>"));
129+
s.println(F(":SegmentId',1,'','&nbsp;<small style=\\'opacity:.8\\'>(-1 disables)</small>');"));
130+
131+
s.print(F("addInfo('DepartStrip:"));
132+
s.print(configKey());
133+
s.print(F(":Delete',1,'<div style=\\'margin-top:12px;\\'>"));
130134
if (model) {
131135
int total = 0; int boards = 0;
132136
if (!keys_.empty()) {
@@ -141,7 +145,5 @@ void DepartureView::appendConfigData(Print &s, const DepartModel *model) {
141145
if (boards > 0) { s.print(F("Items: ")); s.print(total); }
142146
else { s.print(F("No data yet")); }
143147
} else { s.print(F("No data yet")); }
144-
s.print(F("</div>',"));
145-
s.print(F("'&nbsp;<small style=\\'opacity:.8\\'>(-1 disables)</small>'"));
146-
s.println(F(");"));
148+
s.println(F("</div>','');"));
147149
}

0 commit comments

Comments
 (0)