Index: openacs-4/packages/notifications/tcl/notification-display-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/notification-display-procs.tcl,v diff -u -r1.14 -r1.14.2.1 --- openacs-4/packages/notifications/tcl/notification-display-procs.tcl 2 Feb 2005 23:27:21 -0000 1.14 +++ openacs-4/packages/notifications/tcl/notification-display-procs.tcl 20 Nov 2006 20:00:30 -0000 1.14.2.1 @@ -19,6 +19,7 @@ {-pretty_name:required} {-url:required} {-user_id ""} + {-style "default"} } { Produce a widget for requesting notifications of a given type. If the notifications package has not been mounted then return the empty string. @@ -41,11 +42,19 @@ if {![empty_string_p $request_id]} { set sub_url [ad_quotehtml [unsubscribe_url -request_id $request_id -url $url]] set pretty_name [ad_quotehtml $pretty_name] - set sub_chunk "[_ notifications.lt_You_have_requested_no]" + if {[string equal $style "short"]} { + set sub_chunk "[_ notifications.Short_Unsubscribe_Link]" + } else { + set sub_chunk "[_ notifications.lt_You_have_requested_no]" + } } else { set sub_url [ad_quotehtml [subscribe_url -type $type -object_id $object_id -url $url -user_id $user_id -pretty_name $pretty_name]] set pretty_name [ad_quotehtml $pretty_name] - set sub_chunk "[_ notifications.lt_You_may_a_hrefsub_url]" + if {[string equal $style "short"]} { + set sub_chunk "[_ notifications.Short_Subscribe_Link]" + } else { + set sub_chunk "[_ notifications.lt_You_may_a_hrefsub_url]" + } } if { [empty_string_p $sub_url] } {