Sha256: 9b30fc4ea0e2cdd6a4f15e4dfcb8f9c1b8c5926564e0c2907fb269b41cbfe84b

Contents?: true

Size: 387 Bytes

Versions: 39

Compression:

Stored size: 387 Bytes

Contents

module InquiriesHelper

  def open_close_link(inquiry)
    if inquiry.open?
      link_to("Open", {:action => 'toggle_status', :id => inquiry.id},
                      {:title => "Click to close this inquiry"})
    else
      link_to("Closed", {:action => 'toggle_status', :id => inquiry.id},
                        {:title => "Click to open this inquiry back up"})
    end
  end

end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.19 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.18 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.17 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.16 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.15 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.14 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.13 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.12 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.11 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.10 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.9 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.8 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.7 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.6 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.5 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.4 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.3 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.2 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb
refinerycms-0.9.6.1 vendor/plugins/inquiries/app/helpers/inquiries_helper.rb