Project

General

Profile

Revision 89c59306

Added by Partha Aji over 7 years ago

refs #8963 - Renaming truncs to trunc with tool tips

In upstream foreman the trunc method got renamed to trunc with tooltip.
This causes issues with foreman docker when viewing a bunch of index pages
updated all the pages using the trunc method

View differences:

app/views/containers/_list.html.erb
18 18
      <td class="ellipsis text-center"><%= link_to_container(container, resource) %></td>
19 19
      <td class="hidden-tablet hidden-xs text-center">
20 20
        <span <%= vm_power_class(container.ready?) %>><%= vm_state(container) %></span></td>
21
      <td class="hidden-tablet hidden-xs text-center"><%= trunc(container.image_friendly_name) %></td>
22
      <td class="hidden-tablet hidden-xs text-center"><%= trunc(container.command) %></td>
21
      <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(container.image_friendly_name) %></td>
22
      <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(container.command) %></td>
23 23
      <td class="hidden-tablet hidden-xs text-center">
24 24
        <span class="glyphicon glyphicon-time"></span> <%= container.ready? ? time_ago_in_words(container.started_at) : "N/A" %>
25 25
      </td>
app/views/containers/show.html.erb
29 29
            </tr>
30 30
            <tr>
31 31
              <td><%= _('UUID') %></td>
32
              <td><%= trunc @container.in_fog.identity %></td>
32
              <td><%= trunc_with_tooltip @container.in_fog.identity %></td>
33 33
            </tr>
34 34
            <tr>
35 35
              <td><%= _('Memory') %></td>
app/views/image_search/_repository_search_results.html.erb
6 6
      <span class="glyphicon glyphicon-star"></span> <%= repository['star_count'] %>
7 7
    </p>
8 8
    <p>
9
      <%= trunc(repository['description']) %>
9
      <%= trunc_with_tooltip(repository['description']) %>
10 10
      <%= link_to '<span class="glyphicon glyphicon-share"></span>'.html_safe, hub_url(repository), :target => '_blank' %>
11 11
    </p>
12 12
<% end %>
app/views/registries/index.html.erb
17 17

  
18 18
  <% @registries.each do |r| %>
19 19
      <tr>
20
        <td><%= link_to_if_authorized trunc(r.name), hash_for_edit_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer) %></td>
21
        <td class="hidden-tablet hidden-xs text-center"><%= trunc(r.url) %></td>
22
        <td class="hidden-tablet hidden-xs text-center"><%= trunc(r.description) %></td>
20
        <td><%= link_to_if_authorized trunc_with_tooltip(r.name), hash_for_edit_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer) %></td>
21
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(r.url) %></td>
22
        <td class="hidden-tablet hidden-xs text-center"><%= trunc_with_tooltip(r.description) %></td>
23 23
        <td><%= display_delete_if_authorized hash_for_registry_path(:id => r).merge(:auth_object => r, :authorizer => authorizer), :confirm => _("Delete %s?") % r.name %></td>
24 24
      </tr>
25 25
  <% end %>

Also available in: Unified diff