Project

General

Profile

Download (2.04 KB) Statistics
| Branch: | Tag: | Revision:
<tr>
<% unless params[:host_id] -%>
<td class="ellipsis">
<% if fact.host -%>
<%= link_to(fact.host, host_facts_path(:host_id => fact.host)) %>
<% else -%>
<%= _('N/A') %>
<% end %>
</td>
<% end %>
<td>
<%= popover("", escaped_warning_context, {:data => {:title => escaped_warning_title, :placement => "top"}, :icon => "warning-triangle-o", :class => "pull-right" }) if is_escaped_value(fact.name) %>
<%= content_tag(:ol, fact_name(fact, parent), :class => "breadcrumb") %>
</td>
<td class="fact-col">
<% unless fact.compose %>
<%= popover("", escaped_warning_context, {:data => {:title => escaped_warning_title, :placement => "top"}, :icon => "warning-triangle-o", :class => "pull-right" }) if is_escaped_value(fact.value) %>
<% allowed_length = 45 %>
<%= link_to truncate(fact.value, :length => allowed_length),
fact_values_path("search" => "facts.#{fact.name} = \"#{fact.value}\""),
:title => _("Show all %s facts with the same value") % fact.name,
:class => 'pull-left' %>
<%= show_full_fact_value(fact.value) if fact.value.length > allowed_length %>
<% end %>
</td>
<td class='fact-origin'><%= fact_origin_icon(fact.origin, fact.icon_path) %></td>
<td><%= fact_from fact %></td>
<td><% unless fact.compose %>
<%= popover("", "the chart can't display special characters and probalby won't be able to redirect you to the right search", {:data => {:title => escaped_warning_title, :placement => "top"}, :icon => "warning-triangle-o", :class => "pull-right" }) if is_escaped_value(fact.value) || is_escaped_value(fact.name) %>
<span id="view-fact-chart-<%= fact.id %>"></span>
<%= mount_react_component('FactChart', "#view-fact-chart-#{fact.id}", {
path: fact_path(fact.fact_name_id),
title: fact.fact_name.name,
id: fact.id,
search: '/hosts?search=facts.' + fact.fact_name.name + '~~VAL1~'
}.to_json) %>
<% end %>
</td>
</tr>
(1-1/3)