Index: openacs-4/packages/faq-portlet/www/faq-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/faq-portlet/www/faq-portlet.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/faq-portlet/www/faq-portlet.tcl 25 Feb 2002 20:36:02 -0000 1.1 +++ openacs-4/packages/faq-portlet/www/faq-portlet.tcl 25 Feb 2002 20:55:24 -0000 1.2 @@ -21,10 +21,14 @@ set data "" +if {[llength $list_of_package_ids] == 1} { + set one_instance_p 1 +} else { + set one_instance_p 0 +} + foreach package_id $list_of_package_ids { -# ad_return_complaint 1 "aks1 [db_string faq_q_and_as_count_select {} ] " - if { [db_string faq_q_and_as_count_select {} ] != 0 } { set comm_name [site_nodes::get_parent_name \ @@ -33,14 +37,17 @@ set comm_url [dotlrn_community::get_url_from_package_id -package_id $package_id] - append data "$comm_name
" + append data "$comm_name
" + append data "
" } - } else { - # workspace no faqs - set data "No FAQs available" + + append data "