Browse Source

Update breadcrumb logs title to include start date in organisation name (#3059)

pull/3060/head
Manny Dinssa 1 week ago committed by GitHub
parent
commit
a3001ffa68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/helpers/tasklist_helper.rb

2
app/helpers/tasklist_helper.rb

@ -7,7 +7,7 @@ module TasklistHelper
def breadcrumb_logs_title(log, current_user) def breadcrumb_logs_title(log, current_user)
log_type = log.lettings? ? "Lettings" : "Sales" log_type = log.lettings? ? "Lettings" : "Sales"
if current_user.support? && breadcrumb_organisation(log).present? if current_user.support? && breadcrumb_organisation(log).present?
"#{log_type} logs (#{breadcrumb_organisation(log).name})" "#{log_type} logs (#{breadcrumb_organisation(log).name(date: log.startdate)})"
else else
"#{log_type} logs" "#{log_type} logs"
end end

Loading…
Cancel
Save