rosa-build/app/helpers/mass_build_helper.rb

12 lines
443 B
Ruby
Raw Normal View History

2012-12-06 17:59:17 +00:00
module MassBuildHelper
def link_to_list platform, mass_build, which
link_to t("layout.mass_builds.#{which}"),
2014-01-21 04:51:49 +00:00
get_list_platform_mass_build_path(@platform, mass_build, kind: which, format: :txt),
target: "_blank" if can?(:get_list, mass_build)
2012-12-06 17:59:17 +00:00
end
2014-06-26 18:20:26 +01:00
def link_to_mass_build(mass_build)
link_to mass_build.name, build_lists_path+"#?#{{filter: {mass_build_id: mass_build.id, ownership: 'everything'}}.to_param}"
end
2012-12-06 17:59:17 +00:00
end