Revision 2aa77d78
Added by Ori Rabin over 9 years ago
app/views/fact_values/_fact.html.erb | ||
---|---|---|
<% unless params[:host_id] -%>
|
||
<td>
|
||
<% if fact.host -%>
|
||
<%= link_to(trunc(fact.host), host_facts_path(:host_id => fact.host), :title => _("Show %{host} facts") % { :host => fact.host.name }) %>
|
||
<%= link_to(trunc_with_tooltip(fact.host), host_facts_path(:host_id => fact.host), :title => _("Show %{host} facts") % { :host => fact.host.name }) %>
|
||
<% else -%>
|
||
<%= _('N/A') %>
|
||
<% end %>
|
||
... | ... | |
</td>
|
||
<td>
|
||
<% unless fact.compose %>
|
||
<%= link_to trunc(fact.value, 40),
|
||
<%= link_to trunc_with_tooltip(fact.value, 40),
|
||
fact_values_path("search" => "facts.#{fact.name} = \"#{fact.value}\""),
|
||
:title => _("Show all %{name} facts where they are equal to %{value}") % { :name => fact.name, :value => fact.value } %>
|
||
<% end %>
|
Also available in: Unified diff
Fixes #8963 - Rename trunc helper to trunc_with_tooltip