Skip to content

Commit

Permalink
Bug Fix (#852)
Browse files Browse the repository at this point in the history
* Fix translation error on pet show page for an adopter with an application submitted

Update usage of this helper.

Pass the status symbol to the method not the status value

* add translation
  • Loading branch information
kasugaijin authored and ErinClaudio committed Jun 27, 2024
1 parent 1d07748 commit 7dfb98c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/organizations/adoptable_pets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
<% else %>
<% if AdopterApplication.adoption_exists?(current_user.adopter_foster_account&.id, @pet.id) %>
<div class='d-flex align-items-center mt-3'>
<h4 class="me-2">
<%= "#{@adoption_application.human_enum_name(@adoption_application.status) || t('.status.default')}" %>
<h4 class="me-2 mb-0">
<%= "#{t('organizations.adoptable_pets.show.application_status')} #{@adoption_application.human_enum_name(:status) || t('.status.default')}" %>
</h4>
<% if %w[under_review adoption_pending].include?(@adoption_application.status) %>
<%= image_tag('pause.png', height: '21') %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ en:
index:
header: "Up for adoption"
show:
application_status: "Application status:"
adoption_process: "Adoption Process"
please_read_faq_html: "Please read the %{faq_link} before applying to adopt."
create_an_account: "Create an account to apply for this pet"
Expand Down

0 comments on commit 7dfb98c

Please sign in to comment.