2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-09 19:27:51 +00:00
|
|
|
module PlatformsHelper
|
2011-03-31 13:13:04 +01:00
|
|
|
def repository_name_postfix(platform)
|
|
|
|
return "" unless platform
|
|
|
|
return platform.released ? '/update' : '/release'
|
|
|
|
end
|
2012-05-10 16:30:41 +01:00
|
|
|
|
|
|
|
def platform_printed_name(platform)
|
2012-04-01 16:19:54 +01:00
|
|
|
return "" unless platform
|
|
|
|
platform.released? ? "#{platform.name} #{I18n.t("layout.platforms.released_suffix")}" : platform.name
|
|
|
|
end
|
2012-05-10 16:30:41 +01:00
|
|
|
|
2011-03-09 19:27:51 +00:00
|
|
|
end
|