<%= ts("Agnes FAQ") %>
<%= ts("Questions I frequently (or maybe not frequently) get asked.") %>
Want to ask me a question?
<% if @archive_faqs.blank? %>
<%= ts("We're sorry, there are currently no entries in the FAQ System.") %>
<% else %>
<% if rtl? %>
<% else %>
<% end %>
<%= ts("Available Categories") %>
- <%= link_to ts("Expand Categories"), "#" %>
- <%= link_to ts("Collapse Categories"), "#" %>
<% for faq in @archive_faqs %>
-
<%= link_to faq.title, archive_faq_path(faq) %>
<% english? ? questions = faq.questions : questions = translated_questions(faq.questions) %>
<% if questions.blank? %>
- <%= ts("There are no questions in this category yet.") %>
<% else %>
<% for q in questions %>
-
<%= link_to q.question, archive_faq_path(faq, :anchor => q.anchor) %>
<% unless q.screencast.to_s.empty? %>
<%= ts("(Screencast available)") %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= content_for :footer_js do %>
<%= javascript_tag do %>
$j(document).ready(function() {
$j(".category").children("a").click(function(e) {
$j(this).next().toggle();
e.preventDefault();
}).next().hide();
$j("#expand-categories").find("a").click(function(e) {
$j(".category").children("ul").show();
e.preventDefault();
});
$j("#collapse-categories").find("a").click(function(e) {
$j(".category").children("ul").hide();
e.preventDefault();
});
});
<% end %>
<% end %>
<% end %>