Bug 1255182 - Capsule descriptions are trunctated to 32 chars irrespective of cell width
Capsule descriptions are trunctated to 32 chars irrespective of cell width
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Provisioning (Show other bugs)
Unspecified Unspecified
unspecified Severity medium (vote)
: Beta
: --
Assigned To: Katello Bug Bin
Lukas Pramuk
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2015-08-19 17:06 EDT by Andrew Schofield
Modified: 2016-07-27 04:54 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1293486 (view as bug list)
Last Closed: 2016-07-27 04:54:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 13385 None None None 2016-04-22 11:46 EDT

  None (edit)
Description Andrew Schofield 2015-08-19 17:06:16 EDT
Description of problem:
Capsule descriptions in the web UI do not resize to the width of the cell (So if your description for the capusule goes over 32 chars then this is only visible on the rollover).

Version-Release number of selected component (if applicable):
6.1.1 GA

How reproducible:
N/A - web layout

Steps to Reproduce:

This is generated by /usr/share/foreman/app/views/smart_proxies/index.html.erb at line 17:

<td><%= link_to_if_authorized trunc(proxy.name), hash_for_edit_smart_proxy_path(:id => proxy).merge(:auth_object => proxy, :authorizer => authorizer) %></td>

And the trunc method (from : /usr/share/foreman/app/helpers/layout_helper.rb) says this:

def trunc(text, length = 32)
    text    = text.to_s
    options = text.size > length ? { :'data-original-title' => text, :rel => 'twipsy' } : {}
    content_tag(:span, truncate(text, :length => length), options).html_safe

Actual results:
Description text is trucated to 32 chars

Expected results:
Text should match the column width

Additional info:
Comment 2 Bryan Kearney 2016-01-12 15:39:09 EST
Since i missed this earlier... 1255182  is about the capsule name, 1293486 is about the puppet class.
Comment 3 Brad Buckingham 2016-01-26 12:42:35 EST
Created redmine issue http://projects.theforeman.org/issues/13385 from this bug
Comment 4 Bryan Kearney 2016-01-26 14:00:51 EST
Upstream bug component is Provisioning
Comment 5 Brad Buckingham 2016-01-27 07:32:07 EST
Based on the comment in the upstream redmine, this has already been addressed.  Moving the bug to POST, since it should be included with the next rebase.
Comment 8 Lukas Pramuk 2016-04-05 07:25:56 EDT


Smart proxy (=capsule) name at UI is no longer ellipsized at all.
The name is now only wrapped at dashes.
Comment 10 errata-xmlrpc 2016-07-27 04:54:50 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.