Sha256: 042dee9bdcc4a30eb56360cbcaf9ccc6466a098f147f274970fcacbeb32d09c1

Contents?: true

Size: 652 Bytes

Versions: 15

Compression:

Stored size: 652 Bytes

Contents

module WebConsole::Dependencies
  
  class View < WebConsole::View
    BASE_DIRECTORY = File.join(File.dirname(__FILE__), '..')
    VIEWS_DIRECTORY = File.join(BASE_DIRECTORY, "views")
    VIEW_TEMPLATE = File.join(VIEWS_DIRECTORY, 'view.html.erb')

    def initialize
      super
      self.base_url_path = File.expand_path(BASE_DIRECTORY)
      load_erb_from_path(VIEW_TEMPLATE)
    end

    ADD_MISSING_DEPENDENCY_FUNCTION = "addMissingDependency"
    def add_missing_dependency(name, type, installation_instructions = nil)
      self.do_javascript_function(ADD_MISSING_DEPENDENCY_FUNCTION, [name, type, installation_instructions])
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
webconsole-0.1.18 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.17 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.16 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.15 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.14 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.13 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.12 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.11 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.10 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.5 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.4 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.3 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.2 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.1 lib/webconsole/dependencies/lib/view.rb
webconsole-0.1.0 lib/webconsole/dependencies/lib/view.rb