impress/app/helpers/alt_styles_helper.rb
Emi Matchu 0b72b5568c Add edit form for Alt Styles, for Support staff only
We'll need this to fix up the series names and thumbnails for the new
prismatic styles!
2024-09-30 17:21:45 -07:00

9 lines
172 B
Ruby

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