module LogsViewer
class DisplayHelper
def self.get_nested_logs(list)
html = "
"
list.each do |(item)|
icon_file = ''
icon_dir = ''
link = "#{icon_file} #{item}"
html += (LogsViewer::Handler.is_file? item) ? "- #{link}": "
- #{icon_dir} #{item}"
html +=" #{self.get_nested_logs(LogsViewer::Handler.list(item))}" if LogsViewer::Handler.is_directory? item
html +="
"
end
html += "
"
html
end
end
end