Sha256: 5400c3a6ff4fe45b6e8e558fa93273015824e02e7c8a9d23e3ab5824290ef386

Contents?: true

Size: 368 Bytes

Versions: 19

Compression:

Stored size: 368 Bytes

Contents

# -*- encoding: utf-8 -*-
module NdlBooksHelper
  def link_to_import(nbn)
    if nbn.blank?
      t('enju_ndl.not_available')
    else
      manifestation = Manifestation.where(:nbn => nbn).first
      unless manifestation
        link_to '追加', ndl_books_path(:book => {:nbn => nbn}), :method => :post
      else
        '登録済み'
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_ndl-0.0.32 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.31 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.30 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.29 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.27 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.26 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.25 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.24 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.23 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.22 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.21 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.20 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.19 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.18 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.17 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.16 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.15 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.14 app/helpers/ndl_books_helper.rb
enju_ndl-0.0.13 app/helpers/ndl_books_helper.rb