1 # Methods added to this helper will be available to all templates in the application.
2 module ApplicationHelper
7 return @@theme_prefix if @@theme_prefix
8 @@theme_prefix = '/themes'
12 def compute_asset_host(source)
13 if USE_STATIC and source.slice(0, theme_prefix.length) == theme_prefix
14 return "https://static.opensuse.org"