5
11
Fork
You've already forked tomato
1

Display site monthly task log totals for this and last month #162

Merged
edwardloveall merged 1 commit from el-site-monthly-totals into main 2026年06月01日 17:04:09 +02:00

If something comes up for a location its nice to see at a glance if a any shifts will be impacted. Additionally, when its time to rebalance food delivery, it would be useful to see more information about a site for evaluation.

This adds monthly totals for this and last month to the site index page.

If something comes up for a location its nice to see at a glance if a any shifts will be impacted. Additionally, when its time to rebalance food delivery, it would be useful to see more information about a site for evaluation. This adds monthly totals for this and last month to the site index page. <img width="761" height="395" src="/attachments/eb306ab1-a848-4f28-b492-ea1836266915"/>
edwardloveall force-pushed el-site-monthly-totals from 54e2946208
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to e65425e2a2
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年05月27日 20:52:25 +02:00
Compare
edwardloveall force-pushed el-site-monthly-totals from e65425e2a2
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 6487e945d1
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年05月27日 21:07:10 +02:00
Compare
edwardloveall force-pushed el-site-monthly-totals from 6487e945d1
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 7e646c2920
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年05月27日 21:53:16 +02:00
Compare
jsilasbailey left a comment
Copy link

👍

👍
@ -21,0 +21,4 @@
<span>
<%= t(
".totals",
month: t("date.month_names")[1.month.ago.month]
First-time contributor
Copy link

Looks like now and last_month got extracted in the controller and used in show for @this_month and @last_month but not here in index.

Looks like `now` and `last_month` got extracted in the controller and used in `show` for `@this_month` and `@last_month` but not here in `index`.
Author
Owner
Copy link

Yup, good call. I made them helper_methods

Yup, good call. I made them [helper_method](https://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html#method-i-helper_method)s
edwardloveall force-pushed el-site-monthly-totals from 7e646c2920
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to acc83f2548
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年06月01日 16:50:50 +02:00
Compare
edwardloveall changed target branch from el-show-all-sites to main 2026年06月01日 16:57:34 +02:00
edwardloveall deleted branch el-site-monthly-totals 2026年06月01日 17:04:10 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!162
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-site-monthly-totals"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?