rosa-build/app/helpers/mass_build_helper.rb

9 lines
307 B
Ruby
Raw Normal View History

2012-12-06 17:59:17 +00:00
# -*- encoding : utf-8 -*-
module MassBuildHelper
def link_to_list platform, mass_build, which
link_to t("layout.mass_builds.#{which}"),
get_list_platform_mass_build_path(@platform, mass_build, :kind => which, :format => :txt),
:target => "_blank" if can?(:get_list, mass_build)
end
end