summaryrefslogtreecommitdiff
blob: c8c6cb2b5f23e9d660c518620fe5f86504237ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1>Search results for "<%= params[:q] %>"</h1>

<%- if @error -%>
<%= error_msg("The search daemon is currently not available. Please contact " + GLSAMAKER_ADMIN_EMAIL) %>
<%- else -%>

    <%- if @results.include? 'Glsa' -%>
<%= render :partial => "glsas", :locals => {:results => @results['Glsa']} %>
<%- end -%>

<%- if @results.include? 'Cve' -%>
<%= render :partial => "cves", :locals => {:results => @results['Cve']} %>
<%- end -%>

<%- if @results.empty? -%>
<%= image_tag 'icons/error.png' %> No results found. :(
<%- end -%>
    
<%- end -%>