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

finer control over display of journals to be marked

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.9.19
    • Module: Journal
    • None
    • All
    • Any
    • MOODLE_19_STABLE

      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

            dougiamas Martin Dougiamas
            bruno Bruno Vernier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.