Sha256: 6628298902fb814d527ffd752156f535d1af8fc64ec269f1be4f6949174cfe47
Contents?: true
Size: 575 Bytes
Versions: 20
Compression:
Stored size: 575 Bytes
Contents
require 'omf-web/tab/abstract_service' require 'omf-web/session_store' require 'omf-web/widget/log/log_widget' module OMF::Web::Tab::Log class LogService < OMF::Web::Tab::AbstractService def initialize(tab_id, opts = {}) @tab_id = tab_id @opts = opts @widget = OMF::Web::Widget::Log::LogWidget.new(opts) end def show(req, opts) opts[:card_title] ||= 'Log' OMF::Web::Theme.require 'widget_page' [OMF::Web::Theme::WidgetPage.new(@widget, opts).to_html, 'text/html'] end end # LogService end # module
Version data entries
20 entries across 20 versions & 1 rubygems