Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Don't render the calendar if there's no guild to render from
- Loading branch information
1 parent
8b851b1
commit 7303934a7945af01c99430fe0a3faeb92a15d27c
Showing
2 changed files
with
4 additions
and
2 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
@@ -5,7 +5,7 @@ class HomeController < ApplicationController | ||
def index | ||
@raid_calendar_presenter = RaidCalendarPresenter.new( | ||
current_guild | ||
) | ||
) if current_guild | ||
end | ||
|
||
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
@@ -1,3 +1,5 @@ | ||
<%= current_guild_chooser %> | ||
<%= render_raid_calendar @raid_calendar_presenter %> | ||
<% if @raid_calendar_presenter %> | ||
<%= render_raid_calendar @raid_calendar_presenter %> | ||
<% end %> |