end
end
+ @params = params.permit(:display_name, :friends, :nearby, :language)
+
@page = (params[:page] || 1).to_i
@page_size = 20
@traces = @traces.tagged(params[:tag]) if params[:tag]
+ @params = params.permit(:display_name, :tag)
+
@page = (params[:page] || 1).to_i
@page_size = 20
<% content_for :auto_discovery_link_tag do -%>
<% unless params[:friends] or params[:nearby] -%>
- <%= auto_discovery_link_tag :atom, params.merge(:max_id => nil, :xhr => nil, :action => :feed) %>
+ <%= auto_discovery_link_tag :atom, @params.merge(:max_id => nil, :xhr => nil, :action => :feed) %>
<% end -%>
<% end -%>
</ol>
<% if @edits.size == 20 -%>
<div class="changeset_more">
- <%= link_to t('changeset.list.load_more'), url_for(params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
+ <%= link_to t('changeset.list.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
<%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
</div>
<% end -%>
<% if @entries.size < @page_size -%>
<%= t('diary_entry.list.older_entries') %>
<% else -%>
- <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page + 1 ) %>
+ <%= link_to t('diary_entry.list.older_entries'), @params.merge(:page => @page + 1 ) %>
<% end -%>
|
<% if @page > 1 -%>
- <%= link_to t('diary_entry.list.newer_entries'), params.merge(:page => @page - 1) %>
+ <%= link_to t('diary_entry.list.newer_entries'), @params.merge(:page => @page - 1) %>
<% else -%>
<%= t('diary_entry.list.newer_entries') %>
<% end -%>
<% if @traces.size > 1 %>
<% if @page > 1 %>
-<%= link_to t('trace.trace_paging_nav.newer'), params.merge({ :page => @page - 1 }) %>
+<%= link_to t('trace.trace_paging_nav.newer'), @params.merge({ :page => @page - 1 }) %>
<% else %>
<%= t('trace.trace_paging_nav.newer') %>
<% end %>
<% if @traces.size < @page_size %>
<%= t('trace.trace_paging_nav.older') %>
<% else %>
-<%= link_to t('trace.trace_paging_nav.older'), params.merge({ :page => @page + 1 }) %>
+<%= link_to t('trace.trace_paging_nav.older'), @params.merge({ :page => @page + 1 }) %>
<% end %>
<% end %>
</p>