Skip to content

Commit

Permalink
SpeciesFileGroup#3731 Support Gift loan status for CO tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kleintom committed Jan 17, 2024
1 parent a0f18a2 commit 24f3260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/collection_objects_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def collection_object_deaccession_tag(collection_object)

def collection_object_loan_tag(collection_object)
return nil if collection_object.nil? || !collection_object.on_loan?
msg = ['On Loan until', collection_object.loan_return_date].compact.join(' ')
msg = collection_object.loan_return_date ? 'On Loan until ' + collection_object.loan_return_date.to_s : 'Gifted'
content_tag(:span, msg, class: [
:feedback,
'feedback-thin',
Expand Down

0 comments on commit 24f3260

Please sign in to comment.