X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75189bd17d42166871c7ffce07917fdd73dbcfa4..9e98c9d41df683c131719cca60b9a8b5f3d267d9:/app/views/changesets/index.html.erb?ds=sidebyside diff --git a/app/views/changesets/index.html.erb b/app/views/changesets/index.html.erb index cedd3e83a..e9e620062 100644 --- a/app/views/changesets/index.html.erb +++ b/app/views/changesets/index.html.erb @@ -1,17 +1,17 @@ -<% if @edits.present? %> -
    - <%= render :partial => 'changeset', :collection => @edits %> +<% if @changesets.present? %> +
      + <%= render @changesets %>
    -<% if @edits.size == 20 -%> -
    - <%= link_to t('.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %> +<% if @changesets.size == 20 -%> +
    + <%= link_to t(".load_more"), url_for(@params.merge(:max_id => @changesets.last.id - 1)), :class => "btn btn-primary" %>
    <%= image_tag "searching.gif" %>
    <% end -%> <% elsif params[:bbox] %> -
    <%= t(params[:max_id] ? '.no_more_area' : '.empty_area') %>
    +
    <%= t(params[:max_id] ? ".no_more_area" : ".empty_area") %>
    <% elsif params[:display_name] %> -
    <%= t(params[:max_id] ? '.no_more_user' : '.empty_user') %>
    +
    <%= t(params[:max_id] ? ".no_more_user" : ".empty_user") %>
    <% else %> -
    <%= t(params[:max_id] ? '.no_more' : '.empty') %>
    +
    <%= t(params[:max_id] ? ".no_more" : ".empty") %>
    <% end %>