Skip to content

Commit

Permalink
chore: change verbiage to 'sold out' when sold out #132
Browse files Browse the repository at this point in the history
Note: this is a cheap fix. A decorator should handle this.
  • Loading branch information
ColinW520 committed Jan 8, 2020
1 parent 7ffa850 commit 135c0c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/races/_card.html.haml
Expand Up @@ -17,6 +17,9 @@
= link_to new_event_registration_path(race.event, race_id: race.id),
class: "m-2 btn btn-sm btn-success" do
Register Now!
- elsif race.is_full?
= link_to "#", class: "m-2 btn btn-sm btn-success disabled" do
Sold Out
- else
= link_to "#", class: "m-2 btn btn-sm btn-success disabled" do
Registration Unavailable
Expand Down

0 comments on commit 135c0c8

Please sign in to comment.