<% content_for :title do %>
    <% if params[:search_param].present? %>
        <% "OpenSplitTime: Search events - #{params[:search_param]}" %>
    <% else %>
        <% "OpenSplitTime: Search events" %>
    <% end %>
<% end %>
<div class="row">
  <div class="col col-xs-6">
    <h1>Events</h1>
  </div>
  <div class="col-xs-4">
    <%= link_to 'Create New Event', new_event_path,
                class: 'btn btn-sm btn-success btn-margin-lg' %>
  </div>
</div>

<%= render 'lookup' %>

<div class="row">
  <div class="col-xs-8">
    <%= will_paginate(inner_window: 2, outer_window: 0) %>
  </div>
</div>

<% if @events.present? %>
    <%= render 'events', events: @events %>
<% else %>
    <br/>
    <% unless params[:search_param].blank? %>
        <p><strong>No events match this search</strong></p>
    <% end %>
<% end %>

<hr>
<div class="row">
  <div class="col-xs-8">
    <%= will_paginate(inner_window: 2, outer_window: 0) %>
  </div>
</div>

<% content_for :title do %>
    <% if params[:search_param].present? %>
        <% "OpenSplitTime: Search events - #{params[:search_param]}" %>
    <% else %>
        <% "OpenSplitTime: Search events" %>
    <% end %>
<% end %>
<div class="row">
  <div class="col col-xs-6">
    <h1>Events</h1>
  </div>
  <div class="col-xs-4">
    <%= link_to 'Create New Event', new_event_path,
                class: 'btn btn-sm btn-success btn-margin-lg' %>
  </div>
</div>

<%= render 'lookup' %>

<div class="row">
  <div class="col-xs-8">
    <%= will_paginate(inner_window: 2, outer_window: 0) %>
  </div>
</div>

<% if @events.present? %>
    <%= render 'events', events: @events %>
<% else %>
    <br/>
    <% if params[:search_param].blank? %>
        <p><strong>Enter an event name to search</strong></p>
        <% else %>
        <p><strong>No events match this search</strong></p>
    <% end %>
<% end %>

<hr>
<div class="row">
  <div class="col-xs-8">
    <%= will_paginate(inner_window: 2, outer_window: 0) %>
  </div>
</div>

Add back explanatory message to event index when no search param exists.
Add back explanatory message to event index when no search param exists.
