Commit 9b679b7
Calculate count placeholders instead of hard-coding them
- HomeController: count CCIs from the current U_CCI_List_2024.xml (the file
the /cci page already uses) instead of the stale U_CCI_List.xml, so the
homepage CCI count agrees with the table (3,551 -> 5,100).
- baselines + plans: derive the "20 families" / "20 family plans" counts in
the OG/meta strings from the data already passed to the templates
(families|length, plans|length) so they can't go stale; the plans family
list is now generated from plans|keys too.
- Homepage control count now displays as a floor-to-hundred "300+" via
(controls_count // 100) * 100, so it rounds gracefully and self-updates.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 40a48ce commit 9b679b7
4 files changed
Lines changed: 9 additions & 7 deletions
File tree
- cyber.trackr.live
- src/Controller
- templates
- home
- plans
- rmf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments