-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1188 from SplitTime/oveson/hardrock-lottery-2024
Add a banner to the top of the home screen for 2024 Hardrock lottery
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% hardrock = Organization.find_by(slug: "hardrock") %> | ||
<% lottery = hardrock.present? ? hardrock.lotteries.find_by(scheduled_start_date: "2023-12-02") : nil %> | ||
|
||
<% if hardrock.present? && lottery.present? && Date.today == lottery.scheduled_start_date %> | ||
<aside class="navbar bg-warning"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col"> | ||
<%= link_to "Live Hardrock 2024 Lottery", organization_lottery_path(hardrock, lottery), class: "btn btn-outline-secondary" %> | ||
</div> | ||
</div> | ||
</div> | ||
</aside> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters