Module: ForemanInventoryUploadHelper
- Defined in:
- app/helpers/foreman_inventory_upload_helper.rb
Instance Method Summary collapse
Instance Method Details
#css_tags_for(requested_plugins) ⇒ Object
7 8 9 10 11 |
# File 'app/helpers/foreman_inventory_upload_helper.rb', line 7 def (requested_plugins) requested_plugins.map do |plugin| stylesheet_link_tag(*webpack_asset_paths(plugin.to_s, :extension => 'css'), "data-turbolinks-track" => true) end end |
#webpacked_plugins_css_for(*plugin_names) ⇒ Object
3 4 5 |
# File 'app/helpers/foreman_inventory_upload_helper.rb', line 3 def webpacked_plugins_css_for(*plugin_names) (select_requested_plugins(plugin_names)).join.html_safe end |