app/views/locations/index.html.erb in campfire_logic-2.0.0 vs app/views/locations/index.html.erb in campfire_logic-2.0.1

- old
+ new

@@ -1,37 +1,37 @@ -<%- set_title 'Locations' -%> +<% set_title 'Locations' %> -<%- unless @errors.blank? -%> - <%= @errors * '<br />' -%> -<%- end -%> +<% unless @errors.blank? %> + <%= @errors * '<br />' %> +<% end %> -<%- if @locations.empty? -%> - <p><em>No locations found. Why don't you <%= link_to 'import', import_locations_path -%> some? +<% if @locations.empty? %> + <p><em>No locations found. Why don't you <%= link_to 'import', import_locations_path %> some? </em></p> -<%- else -%> +<% else %> <table class="standard"> <tr> - <th><%= sort_link('locations', 'location_number', params) -%></th> - <th><%= sort_link('locations', 'name', params) -%></th> + <th><%= sort_link('locations', 'location_number', params) %></th> + <th><%= sort_link('locations', 'name', params) %></th> <th>Address</th> <th>URL</th> <th> </th> </tr> - <%- for location in @locations -%> - <tr class="<%= cycle('odd', 'even') -%>"> - <td><%= link_to location.location_number, location -%></td> - <td><%= link_to location.name, location -%></td> - <td><%= location.geocoding_address -%></td> + <% for location in @locations %> + <tr class="<%= cycle('odd', 'even') %>"> + <td><%= link_to location.location_number, location %></td> + <td><%= link_to location.name, location %></td> + <td><%= location.geocoding_address %></td> <td> - <%- if location.locale -%> - <%= link_to location.locale.to_param, location.locale.to_param -%> - <%- end -%> + <% if location.locale %> + <%= link_to location.locale.to_param, location.locale.to_param %> + <% end %> </td> - <td class="crud_links"><%= crud_links(location, [:show, :edit, :destroy]) -%></td> + <td class="crud_links"><%= crud_links(location, [:show, :edit, :destroy]) %></td> </tr> - <%- end -%> + <% end %> </table> -<%- end -%> +<% end %> -<%= link_to 'Import', import_locations_path, :class => 'button' -%> -<%= link_to 'Export', export_locations_path, :class => 'button' -%> +<%= link_to 'Import', import_locations_path, :class => 'button' %> +<%= link_to 'Export', export_locations_path, :class => 'button' %>