';
}
}
}
- unless ($discussiononly) {
- $discussion.='';
- }
+ }
+ my $discussion='';
+ foreach (sort { $a <=> $b } keys %discussionitems) {
+ $discussion.=$discussionitems{$_};
}
if ($discussiononly) {
$discussion.=(<
Note: in anonymous discussion, your name is visible only to
course faculty
-
+
Attachment (128 KB max size):
@@ -182,7 +185,8 @@ sub mail_screen {
The LearningOnline Network with CAPA
-
$bodytag
$title
ENDDOCUMENT
@@ -250,12 +257,12 @@ sub fail_redirect {
my ($r,$feedurl) = @_;
$r->print (<Feedback not sent
-
-
+
+
-
+Sorry, no recipients ...
@@ -267,15 +274,15 @@ sub redirect_back {
$r->print (<Feedback sent
-
+
-
+
$typestyle
Sent $sendsomething message(s), and $sendposts post(s).
-$status
+$status
@@ -287,7 +294,7 @@ sub no_redirect_back {
my ($r,$feedurl) = @_;
$r->print (<Feedback not sent
-
+
ENDNOREDIR
if ($feedurl!~/^\/adm\/feedback/) {
@@ -298,7 +305,7 @@ ENDNOREDIR
-
+Sorry, no feedback possible on this resource ...
@@ -306,45 +313,46 @@ ENDNOREDIRTWO
}
sub screen_header {
- my ($feedurl) = @_;
- my $msgoptions='';
- my $discussoptions='';
- if (($feedurl=~/^\/res\//) && ($feedurl!~/^\/res\/adm/)) {
- $msgoptions=
- '
'.
- &mt('Feedback to resource author');
- }
- if (&feedback_available(1)) {
- $msgoptions.=
- ' '.
- &mt('Question about resource content');
- }
- if (&feedback_available(0,1)) {
- $msgoptions.=
- ' '.
- &mt('Question/Comment/Feedback about course content');
- }
- if (&feedback_available(0,0,1)) {
- $msgoptions.=
- ' '.
- &mt('Question/Comment/Feedback about course policy');
- }
-
- if ($ENV{'request.course.id'}) {
- if (&Apache::lonnet::allowed('pch',
- $ENV{'request.course.id'}.
- ($ENV{'request.course.sec'}?'/'.$ENV{'request.course.sec'}:''))) {
- $discussoptions=' '.
- &mt('Contribution to course discussion of resource');
- $discussoptions.=' '.
- &mt('Anonymous contribution to course discussion of resource').
- ' ('.&mt('name only visible to course faculty').')';
+ my ($feedurl) = @_;
+ my $msgoptions='';
+ my $discussoptions='';
+ unless ($ENV{'form.replydisc'}) {
+ if (($feedurl=~/^\/res\//) && ($feedurl!~/^\/res\/adm/)) {
+ $msgoptions=
+ '
'.
+ &mt('Feedback to resource author').'
';
+ }
+ if (&feedback_available(1)) {
+ $msgoptions.=
+ ' '.
+ &mt('Question about resource content');
+ }
+ if (&feedback_available(0,1)) {
+ $msgoptions.=
+ ' '.
+ &mt('Question/Comment/Feedback about course content');
+ }
+ if (&feedback_available(0,0,1)) {
+ $msgoptions.=
+ ' '.
+ &mt('Question/Comment/Feedback about course policy');
+ }
+ }
+ if ($ENV{'request.course.id'}) {
+ if (&Apache::lonnet::allowed('pch',
+ $ENV{'request.course.id'}.
+ ($ENV{'request.course.sec'}?'/'.$ENV{'request.course.sec'}:''))) {
+ $discussoptions=' '.
+ &mt('Contribution to course discussion of resource');
+ $discussoptions.=' '.
+ &mt('Anonymous contribution to course discussion of resource').
+ ' ('.&mt('name only visible to course faculty').')';
}
- }
- if ($msgoptions) { $msgoptions='
'.&mt('Sending Messages').'
'.$msgoptions; }
- if ($discussoptions) {
- $discussoptions='