ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/textual_mixins/textual_filesystems.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
module TextualMixins::TextualFilesystems
  def textual_filesystems
    num = @record.number_of(:filesystems)
    h = {:label => _("Files"), :icon => "fa fa-file-o", :value => num}
    if num.positive?
      h[:title] = n_("Show the File installed on this VM", "Show the Files installed on this VM", num)
      h[:explorer] = true
      h[:link] = url_for_only_path(:controller => controller.controller_name, :action => 'filesystems', :id => @record)
    end
    h
  end
end