+
+
+
+
+ $lt{'cuse'}: |
+ |
+
+END
+ if ($newpostsflag) {
+ $discussion .=
+ '1. '.$lt{'disp'}.' - '.$currdisp.' 2. '.$lt{'nolo'}.' - '.$currmark.'';
+ if ($dischash{$toggkey}) {
+ $discussion .= ' 3. '.$lt{'togg'}.' - '.$currtogg.'';
+ }
+ } else {
+ if ($dischash{$toggkey}) {
+ $discussion .= '1. '.$lt{'disp'}.' - '.$currdisp.' 2. '.$lt{'togg'}.' - '.$currtogg.'';
+ } else {
+ $discussion .=
+ $lt{'disp'}.' - '.$currdisp.'';
+ }
+ }
+ $discussion .= < |
+ |
+
+ $lt{'chgt'}?
+ |
+
+
+ |
+END
+ if ($sortposts) {
+ my %sort_types = ();
+ my %role_types = ();
+ my %status_types = ();
+ &sort_filter_names(\%sort_types,\%role_types,\%status_types);
+
+ $discussion .= ''.&mt('Sorted by').': '.$sort_types{$sortposts}.' ';
+ if (defined($env{'form.totposters'})) {
+ $discussion .= &mt('Posts by').':';
+ if ($totposters > 0) {
+ foreach my $poster (@posters) {
+ $poster =~ s/:/\@/;
+ $discussion .= ' '.$poster.',';
+ }
+ $discussion =~ s/,$//;
+ } else {
+ $discussion .= &mt('None selected');
+ }
+ } else {
+ my $filterchoice ='';
+ if (@sectionpick > 0) {
+ $filterchoice = ''.&mt('sections').'- '.$env{'form.sectionpick'};
+ $filterchoice .= ' ';
+ }
+ if (@grouppick > 0) {
+ $filterchoice = ''.&mt('groups').'- '.$env{'form.grouppick'};
+ $filterchoice .= ' ';
+ }
+ if (@rolefilter > 0) {
+ $filterchoice .= ''.&mt('roles').'-';
+ foreach (@rolefilter) {
+ $filterchoice .= ' '.$role_types{$_}.',';
+ }
+ $filterchoice =~ s/,$//;
+ $filterchoice .= '     ';
+ }
+ if ($statusfilter) {
+ $filterchoice .= ''.&mt('status').'- '.$status_types{$statusfilter};
+ }
+ if ($filterchoice) {
+ $discussion .= ''.&mt('Filters').': '.$filterchoice;
+ }
+ $discussion .= ' | ';
+ }
+ }
+ if ($dischash{$toggkey}) {
+ my $storebutton = &mt('Store read/unread changes');
+ $discussion.=''.
+ ''."\n".
+ ''."\n".
+ ' | ';
+ }
+ $discussion .= (<
+