impress/app/helpers/alt_styles_helper.rb

10 lines
172 B
Ruby
Raw Normal View History

module AltStylesHelper
def view_or_edit_alt_style_url(alt_style)
if support_staff?
edit_alt_style_path alt_style
else
alt_style.preview_image_url
end
end
end