本讨论区帖子已移除
回帖数:12How do you know it exists?
If you have proof can you post screenshot?
If you see it in the source code of the grader page you should be able to trace back to where it originates, for instance is it part of a div container?
Try using Firebug...this explains how to find what you are looking for...
本讨论区帖子已移除
OK...I tracked it down in 2.2.4 mod/lesson/essay.php
// link for each essay
$url = new moodle_url('/mod/lesson/essay.php', array('id'=>$cm->id,'mode'=>'grade','attemptid'=>$essay->id,'sesskey'=>sesskey()));
$attributes = array();
// Different colors for all the states of an essay (graded, if sent, not graded)
if (!$essayinfo->graded) {
$attributes['class'] = "graded";
} elseif (!$essayinfo->sent) {
$attributes['class'] = "sent";
} else {
$attributes['class'] = "ungraded";
}
$essaylinks[] = html_writer::link($url, userdate($essay->timeseen, get_string('strftimedatetime')).' '.format_string($pages[$essay->pageid]->title,true), $attributes);
}
So for all these to show up lets give them different colors and add the classes...
a.graded { color: red; }
a.sent { color: green; }
a.ungraded { color: blue; }
Try that and if it works can you report this in Moodle Tracker. Add the link to this discussion too. As well as the patch and I'll fix it for all themes this weekend!
Thanks
Mary
本讨论区帖子已移除
本讨论区帖子已移除
本讨论区帖子已移除
本讨论区帖子已移除
Ah...at least something is happening.
I am not convinced this is what you want, but we are on the right track. What needs to happen now is to add the #page-mod-lesson-essay in front of those three CSS rules.
#page-mod-lesson-essay a.graded {color:#DF041E;} /** red **/
#page-mod-lesson-essay a.sent {color:#006600;} /** dark green **/
#page-mod-lesson-essay a.ungraded {color:#999999;} /** dark grey **/
This next set of CSS rules are the ones you found in Standard theme. So can you add these too and tell me which work best? If it is these ones below then you can change the colors to suit you best. and delete the other code above. Or alternatively if the others work better delete these...whichever is best.
#page-mod-lesson-essay graded {color: pink;}
#page-mod-lesson-essay sent {color: blue;}
#page-mod-lesson-essay ungraded {color: gold}
Just found this thread, trying to figure out what is happening with lessons
Documentation states that 'Grade essays" tab should display the link to the Lesson Essay questions as following:
- Red - ungraded
- Green - graded
- Grey - graded and sent (emailed)
This was working OK in 1.9 and it also works as described in the Standard theme.
However, if you use any other theme (tested Formal White and Afterburner in 2.5, Clean on 2.6) - the links are no longer colored.
One can try to customize solution from Mary above and add
#page-mod-lesson-essay a.ungraded {color:#DF041E;} /** red **/
#page-mod-lesson-essay a.graded {color:#006600;} /** dark green **/
#page-mod-lesson-essay a.sent {color:#999999;} /** dark grey **/
However this adds thing vice versa order for some reason, so ungraded items are green with this code.
And in reality you need to add this to replicate documentation:
#page-mod-lesson-essay a.graded {color:#DF041E;} /** red - will be used for UNGRADED **/
#page-mod-lesson-essay a.ungraded {color:#999999;} /** dark grey - will be used for SENT **/
#page-mod-lesson-essay a.sent {color:#006600;} /** dark green - will be used for GRADED **/
Can anyone else confirm? This does look like a bug to me, unless there is some other logic going on.