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