Browse Source

Update breadcrumb logs title to include start date in organisation name

pull/3059/head
Manny Dinssa 2 weeks ago
parent
commit
9d17bdbd53
  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)
log_type = log.lettings? ? "Lettings" : "Sales"
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
"#{log_type} logs"
end

Loading…
Cancel
Save