Index: trunk/extensions/EducationProgram/specials/SpecialMyCourses.php |
— | — | @@ -44,6 +44,10 @@ |
45 | 45 | $this->getOutput()->addWikiMsg( 'ep-mycourses-not-a-student' ); |
46 | 46 | } |
47 | 47 | else { |
| 48 | + if ( $this->getUser()->isAllowed( 'ep-org' ) ) { |
| 49 | + $this->displayNavigation(); |
| 50 | + } |
| 51 | + |
48 | 52 | if ( $this->subPage === '' ) { |
49 | 53 | $this->displayCourses( $student ); |
50 | 54 | } |
— | — | @@ -194,5 +198,17 @@ |
195 | 199 | |
196 | 200 | $this->displaySummary( $course, false, $info ); |
197 | 201 | } |
| 202 | + |
| 203 | + /** |
| 204 | + * (non-PHPdoc) |
| 205 | + * @see SpecialEPPage::getDefaultNavigationItems() |
| 206 | + */ |
| 207 | + protected function getDefaultNavigationItems() { |
| 208 | + $items = parent::getDefaultNavigationItems(); |
| 209 | + |
| 210 | + unset( $items[wfMsg( 'ep-nav-mycourses' )] ); |
| 211 | + |
| 212 | + return $items; |
| 213 | + } |
198 | 214 | |
199 | 215 | } |
Index: trunk/extensions/EducationProgram/specials/SpecialCourse.php |
— | — | @@ -103,12 +103,12 @@ |
104 | 104 | htmlspecialchars( $org ) |
105 | 105 | ); |
106 | 106 | |
| 107 | + $stats['status'] = wfMsgHtml( $course->getField( 'active' ) ? 'ep-course-active' : 'ep-course-inactive' ); |
| 108 | + |
107 | 109 | $lang = $this->getLanguage(); |
108 | 110 | |
109 | 111 | $stats['students'] = htmlspecialchars( $lang->formatNum( $course->getField( 'students' ) ) ); |
110 | 112 | |
111 | | - $stats['status'] = wfMsgHtml( $course->getField( 'active' ) ? 'ep-course-active' : 'ep-course-inactive' ); |
112 | | - |
113 | 113 | $termCount = EPTerm::count( array( 'course_id' => $course->getId() ) ); |
114 | 114 | $stats['terms'] = htmlspecialchars( $lang->formatNum( $termCount ) ); |
115 | 115 | |
Index: trunk/extensions/EducationProgram/RELEASE-NOTES |
— | — | @@ -10,4 +10,9 @@ |
11 | 11 | |
12 | 12 | Initial release with these features: |
13 | 13 | |
14 | | -* ... |
\ No newline at end of file |
| 14 | +* Management and browsing interfaces for institutions, courses and terms. |
| 15 | +* Pages with summaries and linked items for all institutions, courses and terms. |
| 16 | +* Enrollment page for students with optional token requirement. |
| 17 | +* Sortable and filterable list of students. |
| 18 | +* Personal courses overview at Special:MyCourses for students. |
| 19 | +* ... |