Method: ModelModalHelper#model_modal_logs_tab

Defined in:
app/helpers/model_modal_helper.rb

#model_modal_logs_tab(model, _options = {}) ⇒ Object



126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'app/helpers/model_modal_helper.rb', line 126

def model_modal_logs_tab(model, _options = {})
  (:div, id: "logs-tab-#{model.id}", class: 'col s12') do
    (:table, class: 'center-align') do
      concat((:thead) do
        concat((:tr) do
          concat((:th) { 'Created' })
          concat((:th) { 'Command' })
          concat((:th) { 'Message' })
        end)
      end)
      concat((:tbody) do
        model.logs.each do |log|
          concat(model_modal_log(log))
        end
      end)
    end
  end
end