<h2>Issues</h2>

            <%= erb :search, { :id => 'issues_tab' } %>

            <div id="issue-tabs">
                <ul>
                    <li><a href="#trusted">Trusted</a></li>
                    <li><a href="#untrusted">Untrusted</a></li>
                </ul>

                <div id="trusted">
                    <h2>Trusted issues</h2>
                    <blockquote>
                        At the time these issues were logged there were no abnormal interferences or anomalous server behavior.<br/>
                        Some of these issues may require manual verification but they are considered trusted and fairly accurate.
                    </blockquote>

                    <% if !filtered_hashes.empty? %>
                        <% audit_store.issues.each_with_index do |issue, i|%>
                            <% next if !filtered_hashes.include?( issue._hash ) %>

                            <%= erb :issue, { :idx => i+1, :issue => issue, :crypto_issues => crypto_issues } %>
                        <% end %>
                    <% else %>
                        <p class="notice">No trusted issues have been logged.</p>
                    <% end %>
                </div>

                <div id="untrusted">
                    <h2>Untrusted</h2>
                    <blockquote>
                        These issues are considered untrusted (and may in fact be false positives) because at the time they were identified the server was exhibiting
                        some kind of anomalous behavior or there was 3rd part interference (like network latency for example).
                        <br/>
                        Despite that fact, this is more of a warning and does not mean that you should let them unexamined.
                    </blockquote>

                    <% if !anomalous_hashes.empty? %>
                        <div id="untrusted-tabs">
                            <ul>
                                <% anomalous_meta_results.each_pair do |name, data|%>
                                    <li><a href="#<%=name%>"><%=data[:name]%></a></li>
                                <% end %>
                            </ul>


                            <% anomalous_meta_results.each_pair do |name, data|%>
                            <div id="<%=name%>">
                                <h3>Component description:</h3>
                                <blockquote> <%=data[:description]%> </blockquote>
                                <br/>
                                <% data[:results].each do |issue| %>
                                    <%= format_issue( issue['hash'] ) %>
                                <% end %>
                            </div>
                            <% end %>

                        </div>
                    <% else %>
                        <p class="notice">No untrusted issues have been logged.</p>
                    <% end %>

                </div>

            </div>