diff --git a/app/stylesheet/miq-data-table.scss b/app/stylesheet/miq-data-table.scss index 2097fba9820..3464940e3ae 100644 --- a/app/stylesheet/miq-data-table.scss +++ b/app/stylesheet/miq-data-table.scss @@ -418,3 +418,10 @@ table.miq_preview { color: var(--red); } } + +#workflows_table { + td.no_text { + width: 50px; + padding-left: 24px; + } +} diff --git a/app/views/workflow/show_list.html.haml b/app/views/workflow/show_list.html.haml index 039604839f2..e4ad69d5fff 100644 --- a/app/views/workflow/show_list.html.haml +++ b/app/views/workflow/show_list.html.haml @@ -1,2 +1,3 @@ #main_div - = render :partial => 'layouts/gtl' + #workflows_table + = render :partial => 'layouts/gtl' diff --git a/lib/gtl_formatter.rb b/lib/gtl_formatter.rb index 0d146be33c2..3285656473b 100644 --- a/lib/gtl_formatter.rb +++ b/lib/gtl_formatter.rb @@ -12,6 +12,9 @@ class GtlFormatter COLUMN_WITH_ICON = { 'authentication_status' => 'authentication_status_image', 'last_compliance_status' => 'last_compliance_status_image', + }.freeze + + COLUMN_WITH_ICON_NO_TEXT = { 'payload_valid' => 'payload_valid_image', }.freeze @@ -134,6 +137,11 @@ def self.format_cols(view, row, controller, options) item = {:title => text, :icon => icon, :text => text}.compact + elsif COLUMN_WITH_ICON_NO_TEXT.key?(col) + icon = send(COLUMN_WITH_ICON_NO_TEXT[col], record) + text = format_col_for_display(view, row, col) + item = {:title => text, + :icon => icon}.compact elsif COLUMN_WITH_TIME.include?(col) celltext = format_time_for_display(row, col) elsif COLUMN_WITH_OS_TEXT.include?(col)