Sha256: b8fc0821c84285198b98b76618f6653199975db3ef7d4a19c21341c0c26e5538

Contents?: true

Size: 389 Bytes

Versions: 6

Compression:

Stored size: 389 Bytes

Contents

module Bookingit
  module Views
    class HeaderView < BaseView
      self.template_name = 'header.html'

      attr_reader :stylesheets, :theme

      def initialize(stylesheets, theme, config)
        @stylesheets = stylesheets.map { |stylesheet|
          OpenStruct.new(path: stylesheet, media: "all")
        }
        @theme = theme
        super(config)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bookingit-0.5.0 lib/bookingit/views/header_view.rb
bookingit-0.4.1 lib/bookingit/views/header_view.rb
bookingit-0.4.0 lib/bookingit/views/header_view.rb
bookingit-0.3.0 lib/bookingit/views/header_view.rb
bookingit-0.2.0 lib/bookingit/views/header_view.rb
bookingit-0.1.0 lib/bookingit/views/header_view.rb