<%unless @first_undated_events.empty?%>
<%= t('event.undated.title') %>
<%for event in @first_undated_events%>
<%= render :partial => event %>
<%end%>
<%=link_to t('event.undated.show'), space_events_path(@space, :show => "undated_events"), {:class => 'undated_link event_navigation'}%>
<%end%>
<%= t('event.upcoming.other') %>
<%if @first_upcoming_events.empty?%>
<%= t('event.upcoming.none') %>
<%else%>
<%for event in @first_upcoming_events%>
<%= render :partial => event %>
<%end%>
<%=link_to t('event.upcoming.show'), space_events_path(@space, :show => "upcoming_events"), {:class => 'upcoming_link event_navigation'}%>
<%end%>
<%if params[:order_by_time]%>
<%=image_tag("icons/16/arrow-down.png")%> <%=link_to "order DESC", space_events_path(@space), {:class => 'past_link event_navigation'}%>
<%else%>
<%=image_tag("icons/16/arrow-up.png")%> <%=link_to "order ASC", space_events_path(@space, :order_by_time => "ASC"), {:class => 'past_link event_navigation'}%>
<%end%>
<%= t('event.past.other') %>
<%if @last_past_events.empty?%>
<%= t('event.past.none') %>
<%else%>
<%for event in @last_past_events%>
<%= render :partial => event %>
<%end%>
<%=link_to t('event.past.show'), space_events_path(@space, :show => "past_events"), {:class => 'past_link event_navigation'}%>
<%end%>