Skip to content

Commit

Permalink
hide organizer dashboard link on organizer dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgrathwell committed Mar 26, 2014
1 parent 63e36ed commit 022ba0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def destroy
end

def organize
@organizer_dashboard = true

@volunteer_rsvps = @event.volunteer_rsvps

@childcare_requests = @event.rsvps_with_childcare
Expand Down
6 changes: 4 additions & 2 deletions app/views/shared/_organizer_breadcrumb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
<%= link_to edit_event_path(@event), class: 'btn' do %>
<i class='fa fa-edit'></i>Edit Event
<% end %>
<%= link_to organize_event_path(@event), class: 'btn' do %>
<i class='fa fa-bullhorn'></i>Organizer Console
<% unless @organizer_dashboard %>
<%= link_to organize_event_path(@event), class: 'btn' do %>
<i class='fa fa-bullhorn'></i>Organizer Console
<% end %>
<% end %>
</div>
</div>

0 comments on commit 022ba0e

Please sign in to comment.