Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4387

finer control over display of journals to be marked

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.9.19
    • Fix Version/s: None
    • Component/s: Module: Journal
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      6a7

      > optional_variable($interval,172000); //BRUNO: interval for showing all or just stuff to be marked

      116a118,119

      > echo <input type=submit value=\.get_string(saveallfeedback, journal).\>; //BRUNO: save button also at top

      > print_simple_box( format_text($journal->intro, $journal->introformat) , center); //BRUNO: show journal description at top

      120a124

      >

      125a130,139

      > //BRUNO: only show entries to be marked or recently marked

      > $entry = $entrybyuser[$user->id];

      > $last_access = max($entry->modified, $entry->timemarked);

      > #$last_marked = $entry->timemarked - $entry->modified;

      > if ($interval>=0 and ((time() - $last_access > $interval))) { // or ($last_marked > $interval) ))

      { > $fullname = fullname(get_record('user','id',$user->id)); > echo <br><a href=report.php?id=$id&interval=-1>Journal $entry->rating for $fullname </a>; > continue; > }

      >

      132c146

      < journal_print_user_entry($course, $user, NULL, $teachers, $grades);

      > if ($interval<0)

      { journal_print_user_entry($course, $user, NULL, $teachers, $grades);}

      //BRUNO: show un-done conditionally

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            bruno Bruno Vernier
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: