Skip to content

Commit

Permalink
Fixes #9130 - Truncate long names in index
Browse files Browse the repository at this point in the history
  • Loading branch information
orrabin authored and lzap committed Mar 2, 2015
1 parent 924fb4f commit d235246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/discovered_hosts/_discovered_host.html.erb
@@ -1,4 +1,4 @@
<td><%= link_to h(host.name), discovered_host_path(host) %></td>
<td><%= link_to trunc_with_tooltip(h(host.name)), discovered_host_path(host) %></td>
<td class="hidden-tablet hidden-xs"><%= model_name host %></td>
<td class="hidden-tablet hidden-xs"><%= host.ip %></td>
<td class="hidden-tablet hidden-xs"><%= discovery_attribute(host, :cpu_count) %></td>
Expand Down
4 changes: 2 additions & 2 deletions app/views/discovery_rules/index.html.erb
Expand Up @@ -13,9 +13,9 @@
</tr>
<% for rule in @discovery_rules %>
<tr>
<td class='col-md-3 display-two-pane'><%= link_to_if_authorized(rule.name, hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %></td>
<td class='col-md-3 display-two-pane'><%= link_to_if_authorized(trunc_with_tooltip(rule.name), hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %></td>
<td><%= rule.priority %></td>
<td><%= rule.search %></td>
<td><%= trunc_with_tooltip(rule.search) %></td>
<td><%= rule.hostgroup.name %></td>
<td><%= rule.hosts.count %> / <%= rule.max_count %></td>
<td><%= rule.enabled %></td>
Expand Down

0 comments on commit d235246

Please sign in to comment.