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) 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