Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/stylesheet/miq-data-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,10 @@ table.miq_preview {
color: var(--red);
}
}

#workflows_table {
td.no_text {
width: 50px;
padding-left: 24px;
}
}
3 changes: 2 additions & 1 deletion app/views/workflow/show_list.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#main_div
= render :partial => 'layouts/gtl'
#workflows_table
= render :partial => 'layouts/gtl'
8 changes: 8 additions & 0 deletions lib/gtl_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down