Sha256: 4c0c2a83162f5f70ed9079e573358b6b2275cde29836bf2c8aa7100bf8cb1716

Contents?: true

Size: 867 Bytes

Versions: 26

Compression:

Stored size: 867 Bytes

Contents

<% if @results && @results_total > 0 %>
  <h1>We found <%= @results_total %> <%= 'results'.pluralize(@results_total) %> for '<%= params['query'] %>'</h1>

  <div class="Vlt-grid">
    <% @results.each do |index| %>
      <div class="Vlt-col">
        <div class="Vlt-card">
        <% if index.index.include? 'nexmo_developer' %>
          <h2>Vonage Developer</h2>
        <% elsif index.index == 'zendesk_nexmo_articles' %>
          <h2>Knowlegebase</h2>
        <% elsif index.index == 'prod_blogposts' %>
          <h2>Blog</h2>
        <% end %>

        <hr>

        <% index.hits.each do |hit| %>
          <%= render 'result', hit: hit, index_name: index.index %>
        <% end %>
      </div>
      </div>
    <% end %>
  </div>
<% else %>
  <h1>Uh oh. We couldn't find anything.</h1>
  <p>Click <a href="/">here</a> to go back to the start</p>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.15 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.14 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.13 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.12 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.11 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.10 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.9 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.8 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.7 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.6 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.5 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.4 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.3 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.2 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.1 lib/nexmo_developer/app/views/search/results.html.erb
station-0.5.0 lib/nexmo_developer/app/views/search/results.html.erb
station-0.4.9 lib/nexmo_developer/app/views/search/results.html.erb
station-0.4.8 lib/nexmo_developer/app/views/search/results.html.erb
station-0.4.7 lib/nexmo_developer/app/views/search/results.html.erb