Skip to content
Permalink
Browse files

Don't render the calendar if there's no guild to render from

  • Loading branch information
jasonroelofs committed Dec 28, 2012
1 parent 8b851b1 commit 7303934a7945af01c99430fe0a3faeb92a15d27c
Showing with 4 additions and 2 deletions.
  1. +1 −1 app/controllers/home_controller.rb
  2. +3 −1 app/views/home/index.html.erb
@@ -5,7 +5,7 @@ class HomeController < ApplicationController
def index
@raid_calendar_presenter = RaidCalendarPresenter.new(
current_guild
)
) if current_guild
end

end
@@ -1,3 +1,5 @@
<%= current_guild_chooser %>

<%= render_raid_calendar @raid_calendar_presenter %>
<% if @raid_calendar_presenter %>
<%= render_raid_calendar @raid_calendar_presenter %>
<% end %>

0 comments on commit 7303934

Please sign in to comment.
You can’t perform that action at this time.