r110283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110282‎ | r110283 | r110284 >
Date:12:34, 30 January 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
link to logs from history pages
Modified paths:
  • /trunk/extensions/EducationProgram/EducationProgram.i18n.php (modified) (history)
  • /trunk/extensions/EducationProgram/actions/CourseHistoryAction.php (modified) (history)
  • /trunk/extensions/EducationProgram/actions/OrgHistoryAction.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/actions/CourseHistoryAction.php
@@ -20,7 +20,12 @@
2121 }
2222
2323 protected function getDescription() {
24 - return wfMsgHtml( 'coursehistory' );
 24+ return Linker::linkKnown(
 25+ SpecialPage::getTitleFor( 'Log' ),
 26+ $this->msg( 'ep-course-history' )->escaped(),
 27+ array(),
 28+ array( 'page' => $this->getTitle()->getPrefixedText() )
 29+ );
2530 }
2631
2732 protected function getItemClass() {
Index: trunk/extensions/EducationProgram/actions/OrgHistoryAction.php
@@ -20,7 +20,12 @@
2121 }
2222
2323 protected function getDescription() {
24 - return wfMsgHtml( 'orghistory' );
 24+ return Linker::linkKnown(
 25+ SpecialPage::getTitleFor( 'Log' ),
 26+ $this->msg( 'ep-org-history' )->escaped(),
 27+ array(),
 28+ array( 'page' => $this->getTitle()->getPrefixedText() )
 29+ );
2530 }
2631
2732 protected function getItemClass() {
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php
@@ -281,7 +281,6 @@
282282 'vieworgaction-summary-status' => 'Status',
283283 'vieworgaction-summary-courses' => 'Course count',
284284 'vieworgaction-summary-students' => 'Student count',
285 - 'ep-institution-nav-edit' => 'Edit this institution',
286285 'ep-institution-add-course' => 'Add a course',
287286 'ep-institution-inactive' => 'Inactive',
288287 'ep-institution-active' => 'Active',
@@ -300,8 +299,13 @@
301300 'viewcourseaction-summary-status' => 'Status',
302301 'viewcourseaction-summary-token' => 'Enrollment token',
303302 'ep-course-description' => 'description',
304 - 'ep-course-nav-edit' => 'Edit this course',
305303
 304+ // Institution history
 305+ 'ep-org-history' => 'View logs for this institution',
 306+
 307+ // Course history
 308+ 'ep-course-history' => 'View logs for this course',
 309+
306310 // Special:Ambassador
307311 'ep-ambassador-does-not-exist' => 'There is no ambassador with name "$1". See [[Special:Ambassadors|here]] for a list of ambassadors.',
308312 'ep-ambassador-title' => 'Ambassador: $1',

Status & tagging log