Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
12
app/helpers/faqs_helper.rb
Normal file
12
app/helpers/faqs_helper.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module FaqsHelper
|
||||
|
||||
def faqs_links(products, current_product = nil)
|
||||
content = []
|
||||
content << content_tag(:li, link_to(t("txt.faqs.general_faqs"), general_faqs_path)) if current_product
|
||||
for product in products
|
||||
content << content_tag(:li, link_to("#{product.name} #{t("txt.faqs.faqs")}", product_faqs_path(product))) if product.has_faqs? && product != current_product
|
||||
end
|
||||
return content.join
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user