OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/helpers/version_settings_helper.rb

23 lines
641 B

module VersionSettingsHelper
unloadable
def position_display_options
options = [::VersionSetting::DISPLAY_NONE,
::VersionSetting::DISPLAY_LEFT,
::VersionSetting::DISPLAY_RIGHT]
options.collect {|s| [humanize_display_option(s), s]}
end
private
def humanize_display_option(option)
case option
when ::VersionSetting::DISPLAY_NONE
t("version_settings_display_option_none")
when ::VersionSetting::DISPLAY_LEFT
t("version_settings_display_option_left")
when ::VersionSetting::DISPLAY_RIGHT
t("version_settings_display_option_right")
end
end
end