Sha256: 0f19de122a4ae95832b44155f77f7f014b643766c71e8c69fd3039400e715342

Contents?: true

Size: 507 Bytes

Versions: 10

Compression:

Stored size: 507 Bytes

Contents

module Hyrax
  # Renders the Help page, terms of use, messages about exporting to Zotero and Mendeley
  class StaticController < ApplicationController
    rescue_from AbstractController::ActionNotFound, with: :render_404
    layout 'homepage'

    def zotero
      respond_to do |format|
        format.html
        format.js { render layout: false }
      end
    end

    def mendeley
      respond_to do |format|
        format.html
        format.js { render layout: false }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/controllers/hyrax/static_controller.rb
hyrax-1.1.0 app/controllers/hyrax/static_controller.rb
hyrax-1.0.5 app/controllers/hyrax/static_controller.rb
hyrax-1.0.4 app/controllers/hyrax/static_controller.rb
hyrax-1.0.3 app/controllers/hyrax/static_controller.rb
hyrax-1.0.2 app/controllers/hyrax/static_controller.rb
hyrax-1.0.1 app/controllers/hyrax/static_controller.rb
hyrax-1.0.0.rc2 app/controllers/hyrax/static_controller.rb
hyrax-1.0.0.rc1 app/controllers/hyrax/static_controller.rb
test_hyrax-0.0.1.alpha app/controllers/hyrax/static_controller.rb