Sha256: d8d95a85595bce5e46d65f253db743f8115972683cb012829232408b4f969061

Contents?: true

Size: 594 Bytes

Versions: 21

Compression:

Stored size: 594 Bytes

Contents

module ModsHelper
  def remote_column(record, b = nil)
    link_to "nfo", "http://updater.dev-heaven.net/#{record.rema}/#{record.id}", :target => "_blank"
  end
  def size_column(record, b = nil)
    if record.size
      "%0.2f MB" % (record.size / 1024.0)
    else
      0
    end
  end

  def type_column(record, b = nil)
    record.class.label
  end

  def type_form_column(record, t, options)
    collection_select(:record, :type, ["Arma2Mod", "Arma2CaMod", "Arma2StMod", "Arma2OaMod", "Arma2OaStMod", "Arma2OaCoMod"], :to_s, :to_s, {:name => options[:name]})
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
six-updater-web-0.24.12 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.11 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.10 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.9 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.8 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.7 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.6 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.5 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.4 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.3 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.2 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.1 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.24.0 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.7 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.6 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.5 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.4 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.3 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.2 lib/six-updater-web/app/helpers/mods_helper.rb
six-updater-web-0.23.1 lib/six-updater-web/app/helpers/mods_helper.rb