Collapse two redundant helpers

Fold one-used event_status_icon and one-used booth_status_icon into
status_icon, used twice; since there is no conflict on the status-
driven description.
This commit is contained in:
James Mason 2018-06-01 12:01:58 -07:00
parent c14c23fc27
commit 2cdff32d08
No known key found for this signature in database
GPG key ID: 1B3951886C449023
3 changed files with 5 additions and 18 deletions

View file

@ -67,7 +67,7 @@
- @events.each do |event|
%tr
%td{style: "padding:20px 8px 20px 8px;"}
%span{ title: event.state.humanize, class: "fa #{event_status_icon(event)}" }
%span{ title: event.state.humanize, class: "fa #{status_icon(event)}" }
%td.col-md-7{style: "padding:20px 8px 20px 8px;"}
= link_to event.title, conference_program_proposal_path(@conference.short_title, event.id)