Skip to content

Commit

Permalink
pluralize location machines count
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Dec 27, 2024
1 parent a423041 commit f43e501
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/views/locations/_render_machines_count.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
- machine_count = location.machine_names.size
%div{:id => "show_machines_location_count_#{location.id}", :class => 'black font18 center lmx_count'}
#{machine_count}
- if machine_count == 1
machine
- else
machines
= pluralize(location.machine_names.size, ' machine')

0 comments on commit f43e501

Please sign in to comment.