';
}
if ($message) {
if ($hidden) {
@@ -128,6 +150,12 @@ sub list_discussion {
$sender.=' '.&mt('Delete').'';
}
+ if (&Apache::lonnet::allowed('pch',
+ $ENV{'request.course.id'}.
+ ($ENV{'request.course.sec'}?'/'.$ENV{'request.course.sec'}:''))) {
+ $sender.=' '.&mt('Reply').'';
+ }
} else {
if ($screenname) {
$sender=''.$screenname.'';
@@ -138,16 +166,30 @@ sub list_discussion {
$vgrlink=&Apache::loncommon::submlink('Submissions',
$contrib{$idx.':sendername'},$contrib{$idx.':senderdomain'},$symb);
}
- $discussion.='
'.$sender.' '.$vgrlink.' ('.
+#figure out at what position this needs to print
+ my $thisindex=$idx;
+# if ($ENV{'request.discussions.threaded'}) {
+ if (1) {
+ $thisindex=$origindex.substr('00'.$replies[$depth[$idx]],-2,2);
+ }
+ $alldiscussion{$thisindex}=$idx;
+ $index[$idx]=$thisindex;
+ $discussionitems[$idx]='
';
}
if ($discussiononly) {
$discussion.=(<
Note: in anonymous discussion, your name is visible only to
course faculty
-
+
Attachment (128 KB max size):
@@ -182,7 +224,8 @@ sub mail_screen {
The LearningOnline Network with CAPA
-
$bodytag
$title
ENDDOCUMENT
@@ -250,12 +297,12 @@ sub fail_redirect {
my ($r,$feedurl) = @_;
$r->print (<Feedback not sent
-
-
+
+
-
+Sorry, no recipients ...
@@ -267,15 +314,15 @@ sub redirect_back {
$r->print (<Feedback sent
-
+
-
+
$typestyle
Sent $sendsomething message(s), and $sendposts post(s).
-$status
+$status
@@ -287,7 +334,7 @@ sub no_redirect_back {
my ($r,$feedurl) = @_;
$r->print (<Feedback not sent
-
+
ENDNOREDIR
if ($feedurl!~/^\/adm\/feedback/) {
@@ -298,7 +345,7 @@ ENDNOREDIR
-
+Sorry, no feedback possible on this resource ...
@@ -306,45 +353,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='