Sha256: 03ada4f03ed7f06137db7ee40db3de8aaacf095b09768dbccf7318f3cf33e590

Contents?: true

Size: 314 Bytes

Versions: 32

Compression:

Stored size: 314 Bytes

Contents

module ActiveAdmin::ViewHelpers
  def action?(action)
    params[:action] == action
  end

  def link_to_large_admin_image(image)
    link_to admin_lentil_image_path(image, :anchor => "show_view_big_image"), :target => "_blank" do
      image_tag image.image_url, :class => "moderation_thumbnail"
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
lentil-1.0.5 lib/lentil/admin/view_helpers.rb
lentil-1.0.4 lib/lentil/admin/view_helpers.rb
lentil-1.0.3 lib/lentil/admin/view_helpers.rb
lentil-1.0.2 lib/lentil/admin/view_helpers.rb
lentil-1.0.1 lib/lentil/admin/view_helpers.rb
lentil-1.0.0 lib/lentil/admin/view_helpers.rb
lentil-0.9.1 lib/lentil/admin/view_helpers.rb
lentil-0.9.0 lib/lentil/admin/view_helpers.rb
lentil-0.8.0 lib/lentil/admin/view_helpers.rb
lentil-0.7.1 lib/lentil/admin/view_helpers.rb
lentil-0.6.0 lib/lentil/admin/view_helpers.rb
lentil-0.5.2 lib/lentil/admin/view_helpers.rb
lentil-0.5.1 lib/lentil/admin/view_helpers.rb
lentil-0.5.0 lib/lentil/admin/view_helpers.rb
lentil-0.4.2 lib/lentil/admin/view_helpers.rb
lentil-0.4.0 lib/lentil/admin/view_helpers.rb
lentil-0.3.1 lib/lentil/admin/view_helpers.rb
lentil-0.3.0 lib/lentil/admin/view_helpers.rb
lentil-0.2.3 lib/lentil/admin/view_helpers.rb
lentil-0.2.2 lib/lentil/admin/view_helpers.rb