Sha256: f5b410b4fa8c46a23b463b95bda02e54028e8df326d02541f97a67e7ea6994c7
Contents?: true
Size: 1.55 KB
Versions: 5
Compression:
Stored size: 1.55 KB
Contents
<% title _("Fact Values") %> <table class="table table-bordered table-striped ellipsis"> <tr> <% unless params[:host_id] -%> <th><%= sort :host, :as => _("Host") %></th> <% end %> <th><%= sort :name, :as => _("Name") %></th> <th><%= sort :value, :as => s_("FactValue|Value") %></th> <th><%= _('Reported at') -%></th> </tr> <% for fact_value in @fact_values %> <tr> <% unless params[:host_id] -%> <td> <% if fact_value.host -%> <%= link_to(fact_value.host, host_facts_path(:host_id => fact_value.host), :title => _("Show host facts")) %> <% else -%> N/A <% end %> </td> <% end %> <td> <%= link_to_function image_tag("pie_chart_icon.png", :alt => _("Show distribution chart")), "get_pie_chart('fact_chart-#{fact_value.fact_name_id}', '#{fact_path(fact_value.fact_name_id)}')" %> <%= link_to h(fact_value.fact_name.name), fact_values_path("search" => "name = #{fact_value.name}"), :title => _("Show all %s fact values") % fact_value.name %> </td> <td> <%= link_to h(truncate fact_value.value, :length => 40), fact_values_path("search" => "facts.#{fact_value.name} = \"#{fact_value.value}\""), :title => _("Show all %{name} facts where they are equal to %{value}") % { :name => fact_value.name, :value => fact_value.value } %> </td> <td><%= fact_from fact_value %></td> </tr> <% end %> </table> <%= page_entries_info @fact_values %> <%= will_paginate @fact_values %>
Version data entries
5 entries across 5 versions & 1 rubygems