Skip to content

Commit

Permalink
[#1264] Fix bug on Medications show page
Browse files Browse the repository at this point in the history
  • Loading branch information
julianguyen committed Nov 15, 2018
1 parent 1f01762 commit d94705c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/medications/_story_body.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div>
<strong><%= t('medications.strength') %></strong>
<%= t('medications.units.display', count: local_assigns[:medication].strength, unit: t("medications.units.#{local_assigns[:medication].strength_unit}", count: local_assigns[:medication].strength)) %>
<%= t('medications.units.display', count: local_assigns[:medication].strength, unit: local_assigns[:medication].strength_unit) %>
</div>
<div>
<strong><%= t('medications.quantity') %></strong>
<%= t('medications.units.display', count: local_assigns[:medication].total, unit: t("medications.units.#{local_assigns[:medication].total_unit}", count: local_assigns[:medication].total)) %>
<%= t('medications.units.display', count: local_assigns[:medication].total, unit: local_assigns[:medication].total_unit) %>
</div>
<div>
<% if local_assigns[:medication].daily? %>
Expand All @@ -13,7 +13,7 @@
<strong><%= t('medications.weekly_dosage') %></strong>
<%= local_assigns[:medication].weekly_dosage.map{|i| t(:'date.abbr_day_names')[i] }.join(', ') %>;
<% end %>
<%= t('medications.units.display', count: local_assigns[:medication].dosage, unit: t("medications.units.#{local_assigns[:medication].dosage_unit}", count: local_assigns[:medication].dosage)) %>
<%= t('medications.units.display', count: local_assigns[:medication].dosage, unit: local_assigns[:medication].dosage_unit) %>
</div>
<div>
<strong><%= t('medications.refill') %></strong>
Expand Down

0 comments on commit d94705c

Please sign in to comment.