Sha256: 9622503fb5bca0103ec8d06dfa1604805b77ff502ab34779183b8068c8cf059b

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

<% @documents.each do | document | %>
  <div>
    [<%= document.label.titleize %>]
    <a href='<%= document_path(document) %>'><%= document.title %></a>
    <%= document.summary %><BR>
    <%= document.published_at %>
  </div>
<% end %>

<p><%= will_paginate @documents %></p>

<script>
  // Add the query string to the pagination links
  $(function(){
    $('.pagination a').each(function(){
      $(this).attr('href', $(this).attr('href') + '&search[title_like]=<%= params[:search][:title_like] %>');
    })
  })
</script>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qcms-2.1.0 app/views/pages/search.html.erb
qcms-2.0.0 app/views/pages/search.html.erb
qcms-1.3.10 app/views/pages/search.html.erb
qcms-1.3.9 app/views/pages/search.html.erb
qcms-1.3.8 app/views/pages/search.html.erb
qcms-1.3.7 app/views/pages/search.html.erb
qcms-1.3.6 app/views/pages/search.html.erb
qcms-1.3.5 app/views/pages/search.html.erb
qcms-1.3.3 app/views/pages/search.html.erb