Add date_range
view helper (#32187)
This commit is contained in:
parent
7a653001b4
commit
f251edfc1d
4 changed files with 8 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue