[system] / branches / rel-2-3-dev / webwork2 / lib / WeBWorK / ContentGenerator / Instructor / Index.pm Repository:
ViewVC logotype

Diff of /branches/rel-2-3-dev/webwork2/lib/WeBWorK/ContentGenerator/Instructor/Index.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 833 Revision 834
21 return "Instructor tools for ".$self->{ce}->{courseName}; 21 return "Instructor tools for ".$self->{ce}->{courseName};
22} 22}
23 23
24sub body { 24sub body {
25 my $self = shift; 25 my $self = shift;
26 my $r = $self->{r};
27 my $ce = $self->{ce};
28 my $courseName = $ce->{courseName};
29 my $authen_args = $self->url_authen_args();
30
31 my $prof_url = $ce->{webworkURLs}->{oldProf};
32 my $full_url = "$prof_url?course=$courseName&$authen_args";
26 my $userEditorURL = "userList/?" . $self->url_args; 33 my $userEditorURL = "userList/?" . $self->url_args;
27 my $problemSetEditorURL = "problemSetList/?" . $self->url_args; 34 my $problemSetEditorURL = "problemSetList/?" . $self->url_args;
28 my $courseName = $self->{ce}->{courseName};
29 35
36 return
30 return CGI::p("\n". 37 CGI::p("\n".
31 CGI::a({href=>$userEditorURL}, "Users"). " - View and edit data and settings for users of $courseName" . CGI::br(). "\n". 38 CGI::a({href=>$userEditorURL}, "Users"). " - View and edit data and settings for users of $courseName" . CGI::br(). "\n".
32 CGI::a({href=>$problemSetEditorURL}, "Problem Sets"). " - View and edit settings for problem sets in $courseName".CGI::br()."\n" 39 CGI::a({href=>$problemSetEditorURL}, "Problem Sets"). " - View and edit settings for problem sets in $courseName".CGI::br()."\n"
33 ) 40 )."\n".CGI::hr()."\n".
41 CGI::p(
42 CGI::b("NOTE: ") .
43 "The Instructor Tools in this preview release of WeBWorK
44 2.0 are not stable or complete. If you reliable and
45 stable course editing features, than at this time you
46 will need to use the Professor tools from WeBWorK 1.8
47 or earlier. Use the links below to go to the Professor
48 pages of your system's WeBWorK 1.x installation."
49 )."\n".
50 CGI::ul(
51 CGI::li(
52 CGI::a({-href=>$full_url}, "Go to Professor pages")
53 ).
54 CGI::li(
55 CGI::a({-href=>$full_url, -target=>"_new"}, "Open Professor pages in new window")
56 )
57 );
34} 58}
35 59
361; 601;
37 61
38__END__ 62__END__

Legend:
Removed from v.833  
changed lines
  Added in v.834

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9