Index: openacs-4/packages/dotlrn/tcl/community-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.tcl,v diff -u -r1.210 -r1.211 --- openacs-4/packages/dotlrn/tcl/community-procs.tcl 18 Jun 2015 20:04:43 -0000 1.210 +++ openacs-4/packages/dotlrn/tcl/community-procs.tcl 28 Jun 2015 11:58:50 -0000 1.211 @@ -1243,14 +1243,19 @@ set url [get_community_url $sc_id] set subgroup_name [get_community_name $sc_id] - if {[has_subcommunity_p -community_id $sc_id] \ - && [member_p $sc_id $user_id]} { + if {[has_subcommunity_p -community_id $sc_id] + && [member_p $sc_id $user_id]} { # Shows the subcomms of this subcomm ONLY IF I'm a # member of the current comm - append chunk "$pretext $subgroup_name\n" + append chunk [subst {$pretext + $subgroup_name + }] if {$show_drop_link_p} { - append chunk "([_ dotlrn.Drop])\n" + set href [export_vars -base ${url}${drop_target} {{referer {[ad_conn url]}}}] + append chunk [subst { + ([_ dotlrn.Drop]) + }] } append chunk "\n" @@ -1274,25 +1279,36 @@ # illicit registrations if the group is closed. set parent_url [get_community_url $community_id] - append chunk "$pretext $subgroup_name\n" + append chunk [subst {$pretext + $subgroup_name + }] if {![member_p $sc_id $user_id] && [not_closed_p -community_id $sc_id]} { append chunk "" if {[member_pending_p -community_id $sc_id -user_id $user_id]} { append chunk "[_ dotlrn.Pending_Approval]" } elseif {[needs_approval_p -community_id $sc_id]} { - append chunk "[_ dotlrn.Request_Membership]\n" + set href [export_vars -base ${parent_url}${join_target} {{community_id $sc_id} {referer {[ad_conn url]}}}] + append chunk [subst { + [_ dotlrn.Request_Membership] + }] } else { - append chunk "([_ dotlrn.Join])\n" + set href [export_vars -base ${parent_url}${join_target} {{community_id $sc_id} {referer {[ad_conn url]}}}] + append chunk [subst { + ([_ dotlrn.Join]) + } } append chunk "\n" } elseif {[member_p $sc_id $user_id]} { # User is a member. if {$show_drop_link_p} { - append chunk "([_ dotlrn.Drop])\n" + set href [export_vars -base ${url}${drop_target} {{referer {[ad_conn url]}}}] + append chunk [subst { + ([_ dotlrn.Drop]) + }] } } } @@ -1410,7 +1426,7 @@ if {[subcommunity_p -community_id $community_id]} { set parent_name [get_parent_name -community_id $community_id] set parent_url [get_community_url [get_parent_id -community_id $community_id]] - return [subst {$parent_name: [get_community_name $community_id]}] + return [subst {$parent_name: [get_community_name $community_id]}] } else { return [get_community_name $community_id] }