Sha256: 4fefee1c9765408419ec7f379e3a88d8ba9b27dc8709f7079cfde88b7c06bf0f
Contents?: true
Size: 414 Bytes
Versions: 8
Compression:
Stored size: 414 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 t('enju_ndl.add'), ndl_books_path(:book => {:nbn => nbn}), :method => :post else link_to t('enju_ndl.already_exists'), manifestation end end end end
Version data entries
8 entries across 8 versions & 1 rubygems