Correction rapide, pour bien avoir toutes les régions

This commit is contained in:
echarp 2014-08-18 00:43:59 +02:00
parent a3760b57b8
commit e8b3ed3787
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class EventsController < ApplicationController
def set_events
@events = Event.moderated
@events = @events.region params[:region] \
if params[:region].present? && params[:region] != 'all'
if params[:region] && params[:region] != 'all'
@events = @events.tag(params[:tag]) if params[:tag]
end

View File

@ -1,7 +1,7 @@
%nav.region_selector
-# Display the currently selected region
%h3
- if params[:region]
- if params[:region] && params[:region] != 'all'
= Region.find params[:region]
%em.fa.fa-chevron-down
- else