Project

General

Profile

Actions

Bug #13384

closed

Puppet class index names are trunctated to 32 chars irrespective of cell width

Added by Brad Buckingham about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1293486
++ This bug was initially created as a clone of Bug #1255182 ++

Description of problem:
Puppet class names in the web UI do not resize to the width of the cell (So if you have a <module>::<var> class name that approaches 32 chars this may not be fully visible).

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

How reproducible:
Config -> Puppet classes

Steps to Reproduce:

This is generated by /usr/share/foreman/app/views/puppetclasses/index.html.erb

<% for puppetclass in @puppetclasses >
<tr>
<td><
=link_to_if_authorized trunc(puppetclass.name), hash_for_edit_puppetclass_path(:id => puppetclass).merge(:auth_object => puppetclass, :authorizer => authorizer) %></td>
<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
end

Actual results:
Class name text is trucated to 32 chars

Expected results:
Class names should be fully visible

Additional info:

Actions #1

Updated by Dominic Cleal about 8 years ago

  • Subject changed from Puppet class names are trunctated to 32 chars irrespective of cell width to Puppet class index names are trunctated to 32 chars irrespective of cell width
  • Category set to Web Interface
Actions #2

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Rejected

Changed already.

Actions

Also available in: Atom PDF