Add date_range view helper (#32187)

This commit is contained in:
Matt Jankowski 2024-10-01 05:30:21 -04:00 committed by GitHub
parent 7a653001b4
commit f251edfc1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 9 deletions

View file

@ -3,9 +3,7 @@
- if current_user.can?(:view_dashboard)
- content_for :heading_actions do
= l(@time_period.first)
= ' - '
= l(@time_period.last)
= date_range(@time_period)
- if @instance.persisted?
= render 'dashboard', instance_domain: @instance.domain, period_end_at: @time_period.last, period_start_at: @time_period.first