Sha256: 208a5b61698955c052b8d4c62e702f01d6aa2d2f7b235147f3f7b9a5d394b332
Contents?: true
Size: 1.17 KB
Versions: 17
Compression:
Stored size: 1.17 KB
Contents
<% if flash[:search_query] %> <script> $(function(){ if(typeof sessionStorage === "undefined"){ return; }else{ var ids = JSON.parse(sessionStorage.getItem("<%= flash[:search_query] %>")); var index = $.inArray(<%= manifestation.id %>, ids); if(ids[index - 1] > 0){ $("#prev_link").html('<a href="<%= root_url %>manifestations/' + ids[index - 1] + '"><%= t('page.previous') %></a>'); }; if(ids[index + 1] > 0){ $("#next_link").html('<a href="<%= root_url %>manifestations/' + ids[index + 1] + '"><%= t('page.next') %></a>'); }; }; }); </script> <% end %> <%= form_for :manifestations, :url => manifestations_path, :html => {:method => 'get'} do -%> <div> <span id="next_link"><%= t('page.next') %></span> <span id="prev_link"><%= t('page.previous') %></span> <%= back_to_manifestation_index -%> <%= t('page.search_term') -%>: <%= search_field_tag 'query', @query, {:id => 'search_form_top', :class => 'search_form_short', :placeholder => t('page.search_term')} -%> <%= submit_tag t('page.search') -%> <%= link_to t('page.advanced_search'), page_advanced_search_path -%> </div> <%- end -%>
Version data entries
17 entries across 17 versions & 1 rubygems