X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3af16f6337b52546297e7e09a1aba9b0e1df7e15..95d99d0faf14e82aed6447fb9e92cc0e54e5e3ad:/app/views/changesets/index.html.erb diff --git a/app/views/changesets/index.html.erb b/app/views/changesets/index.html.erb index 1ce98301a..97e6351a0 100644 --- a/app/views/changesets/index.html.erb +++ b/app/views/changesets/index.html.erb @@ -1,17 +1,21 @@ -<% 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" %> -
    <%= image_tag "searching.gif" %>
    +<% if @changesets.size == 20 -%> +
    + <%= link_to t(".load_more"), url_for(@params.merge(:max_id => @changesets.last.id - 1)), :class => "btn btn-primary" %> +
    +
    + <%= t("browse.start_rjs.loading") %> +
    +
    <% 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 %>