Skip to content

Commit

Permalink
Put background under archived/orphaned tree node icons in VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Sep 27, 2018
1 parent 7473cb1 commit 8fffa1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/presenters/tree_builder_archived.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ def x_get_tree_custom_kids(object, count_only, options)
end

def x_get_tree_arch_orph_nodes(model_name)
archived = QuadiconHelper.machine_state('archived').values_at(:fonticon, :background)
orphaned = QuadiconHelper.machine_state('orphaned').values_at(:fonticon, :background)

[
{:id => "arch", :text => _("<Archived>"), :icon => "fa fa-archive", :tip => _("Archived %{model}") % {:model => model_name}},
{:id => "orph", :text => _("<Orphaned>"), :icon => "ff ff-orphaned", :tip => _("Orphaned %{model}") % {:model => model_name}}
{:id => "arch", :text => _("<Archived>"), :icon => archived[0], :icon_background => archived[1], :tip => _("Archived %{model}") % {:model => model_name}},
{:id => "orph", :text => _("<Orphaned>"), :icon => orphaned[0], :icon_background => orphaned[1], :tip => _("Orphaned %{model}") % {:model => model_name}}
]
end
end

0 comments on commit 8fffa1b

Please sign in to comment.