<% if(typeof result != "undefined"){ %>
<% _.each(result, function( result_value, result_key ){ if(result_value.bundle == "quotes" && result_value.content != ""){ %> - <%= result_value.content %> <% if (typeof result_value.tags !== "undefined"){ %> <% } %>
share
<% }else if(result_value.bundle == "q_and_a"){ if(result_value.content != "" || result_value.content != "undefined"){ %> - <% if(layout == "collapsed"){ %> Q: <%= result_value.label %>
<% }else{ %> Q: <%= result_value.label %> <% } %> <% var test_content = result_value.content; test_content = test_content.replace(result_value.label, ""); if(layout != "collapsed") test_content = _.content_more(test_content); %> <%= test_content %> share
<% } } }); %>
<% } %><%var item_per_page = pagination_query.count;var total_count = total;pagination_query = JSON.stringify(pagination_query);pagination_query = pagination_query.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/"/g, "'");var total_pages = Math.ceil(total_count/item_per_page);var page_position = ((current_page-1) * item_per_page);pagination_query.start = page_position;var pagination_display = _.pagination(item_per_page, current_page, total_count, total_pages);%> <%= pagination_display %>'
//-->