Skip to content

avalonmediasystem/about_page

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AboutPage

Build Status

To use in a Hydra app:

# In Gemfile
gem 'about_page', :git => 'git://github.com/sul-dlss/about_page.git'

# In config/initializers/about_page.rb
AboutPage.configure do |config|
  config.app           = { :name => MyApplication.name, :version => MyApplication::VERSION }
  config.environment   = AboutPage::Environment.new({ 
    'Ruby' => /^(RUBY|GEM_|rvm)/    # This defines a "Ruby" subsection containing
                                    # environment variables whose names match the RegExp
  })
  config.request       = AboutPage::RequestEnvironment.new({
    'HTTP Server' => /^(SERVER_|POW_)/  # This defines an "HTTP Server" subsection containing
                                        # request variables whose names match the RegExp
  })
  config.dependencies  = AboutPage::Dependencies.new
  config.fedora        = AboutPage::Fedora.new(ActiveFedora.fedora.connection)
  config.solr          = AboutPage::Solr.new(ActiveFedora.solr)                           # RSolr instance
  config.git           = AboutPage::GitLog.new(15) # Display the last 15 git commits
end

# In config/routes.rb
mount AboutPage::Engine => '/about(.:format)' # Or whever you want to access the about page

# In app/assets/stylesheets/application.scss
@import "about_page"

Known Issues

  • Solr must have LukeHandler enabled on /luke

About

Hydra(-ish) app about page plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 58.2%
  • HTML 38.2%
  • CSS 2.3%
  • JavaScript 1.3%