Skip to content

Commit f40ff4f

Browse files
committed
first commit
0 parents  commit f40ff4f

12 files changed

+737
-0
lines changed

block_grade_me.php

+414
Large diffs are not rendered by default.

javascript/jquery-1.6.1.min.js

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/en/block_grade_me.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
$string['pluginname'] = 'Grade Me';
4+
$string['title'] = 'Grade Me';
5+
$string['datetime'] = '%B %d, %l:%M %p';
6+
$string['excess'] = 'There are too many submissions to display them all in the block.';
7+
$string['nothing'] = 'Nothing to grade!';
8+
9+
$string['link_gradebook_icon'] = 'Go to {$a->course_name} gradebook…';
10+
$string['link_gradebook'] = 'Go to {$a->course_name}…';
11+
$string['link_mod_img'] = 'Go to {$a->mod_name} in gradebook…';
12+
$string['link_mod'] = 'Go to {$a->mod_name}';
13+
$string['link_grade_img'] = 'Grade assignment…';
14+
$string['link_user_profile'] = '{$a->first_name}\'s profile…';
15+
16+
$string['alt_gradebook'] = 'Go to {$a->course_name} gradebook…';
17+
$string['alt_mod'] = 'Go to {$a->mod_name} in gradebook…';
18+
$string['alt_mark'] = 'check';
19+
$string['alt_smiley'] = 'smiley';
20+
21+
$string['settings_maxitems'] = 'Maximum Ungraded Items';
22+
$string['settings_configmaxitems'] = 'This define the maximum number of ungraded items to query. Settings this too high will slow page loads.';
23+
$string['settings_enableassignment'] = 'Show Assignments';
24+
$string['settings_configenableassignment'] = 'Should Grade Me show ungraded activity from the "Assignment" module?';
25+
$string['settings_enabledata'] = 'Show Databases';
26+
$string['settings_configenabledata'] = 'Should Grade Me show unrate activity from the "Database" module?';
27+
$string['settings_enableforum'] = 'Show Forums';
28+
$string['settings_configenableforum'] = 'Should Grade Me show unrated activity from the "Forum" module?';
29+
$string['settings_enableglossary'] = 'Show Glossaries';
30+
$string['settings_configenableglossary'] = 'Should Grade Me show ungraded activity from the "Glossary" module?';
31+
$string['settings_enablelesson'] = 'Show Lessons';
32+
$string['settings_configenablelesson'] = 'Should Grade Me show ungraded essay activity from the "Lesson" module?';
33+
$string['settings_enablequiz'] = 'Show Quizzes';
34+
$string['settings_configenablequiz'] = 'Should Grade Me show ungraded question activity from the "Quiz" module?';
35+
$string['settings_enableworkshop'] = 'Show Workshops';
36+
$string['settings_configenableworkshop'] = 'Should Grade Me show ungraded activity from the "Workshop" module?';

lang/en_utf8/block_grade_me.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
$string['pluginname'] = 'Grade Me';
4+
$string['title'] = 'Grade Me';
5+
$string['datetime'] = '%B %d, %l:%M %p';
6+
$string['excess'] = 'There are too many submissions to display them all in the block.';
7+
$string['nothing'] = 'Nothing to grade!';
8+
9+
$string['link_gradebook_icon'] = 'Go to {$a->course_name} gradebook…';
10+
$string['link_gradebook'] = 'Go to {$a->course_name}…';
11+
$string['link_mod_img'] = 'Go to {$a->mod_name} in gradebook…';
12+
$string['link_mod'] = 'Go to {$a->mod_name}';
13+
$string['link_grade_img'] = 'Grade assignment…';
14+
$string['link_user_profile'] = '{$a->first_name}\'s profile…';
15+
16+
$string['alt_gradebook'] = 'Go to {$a->course_name} gradebook…';
17+
$string['alt_mod'] = 'Go to {$a->mod_name} in gradebook…';
18+
$string['alt_mark'] = 'check';
19+
$string['alt_smiley'] = 'smiley';
20+
21+
$string['settings_maxitems'] = 'Maximum Ungraded Items';
22+
$string['settings_configmaxitems'] = 'This define the maximum number of ungraded items to query. Settings this too high will slow page loads.';
23+
$string['settings_enableassignment'] = 'Show Assignments';
24+
$string['settings_configenableassignment'] = 'Should Grade Me show ungraded activity from the "Assignment" module?';
25+
$string['settings_enabledata'] = 'Show Databases';
26+
$string['settings_configenabledata'] = 'Should Grade Me show unrate activity from the "Database" module?';
27+
$string['settings_enableforum'] = 'Show Forums';
28+
$string['settings_configenableforum'] = 'Should Grade Me show unrated activity from the "Forum" module?';
29+
$string['settings_enableglossary'] = 'Show Glossaries';
30+
$string['settings_configenableglossary'] = 'Should Grade Me show ungraded activity from the "Glossary" module?';
31+
$string['settings_enablelesson'] = 'Show Lessons';
32+
$string['settings_configenablelesson'] = 'Should Grade Me show ungraded essay activity from the "Lesson" module?';
33+
$string['settings_enablequiz'] = 'Show Quizzes';
34+
$string['settings_configenablequiz'] = 'Should Grade Me show ungraded question activity from the "Quiz" module?';
35+
$string['settings_enableworkshop'] = 'Show Workshops';
36+
$string['settings_configenableworkshop'] = 'Should Grade Me show ungraded activity from the "Workshop" module?';

lang/es_utf8/block_grade_me.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
$string['pluginname'] = 'Califícame';
4+
$string['title'] = 'Califícame';
5+
$string['datetime'] = '%B %d, %l:%M %p';
6+
$string['excess'] = 'La cantidad de tareas es demasiado para mostrar todos en un este bloque';
7+
$string['nothing'] = '¡No hay nada para calificar!';
8+
9+
$string['link_gradebook_icon'] = 'Vaya a las calificaciones para {$a->course_name} …';
10+
$string['link_gradebook'] = 'Vaya a {$a->course_name}…';
11+
$string['link_mod_img'] = 'Vaya a {$a->mod_name} en las calificaciones…';
12+
$string['link_mod'] = 'Vaya a {$a->mod_name}';
13+
$string['link_grade_img'] = 'Califica tarea…';
14+
$string['link_user_profile'] = 'Perfil de {$a->first_name}…';
15+
16+
$string['alt_gradebook'] = 'Vaya a las calificaciones para {$a->course_name} …';
17+
$string['alt_mod'] = 'Vaya a {$a->mod_name} en las calificaciones…';
18+
$string['alt_mark'] = 'marca';
19+
$string['alt_smiley'] = 'icono de sonrisa';
20+
21+
$string['settings_maxitems'] = 'Maximum Ungraded Items';
22+
$string['settings_configmaxitems'] = 'This define the maximum number of ungraded items to query. Settings this too high will slow page loads.';
23+
$string['settings_enableassignment'] = 'Show Assignments';
24+
$string['settings_configenableassignment'] = 'Should Grade Me show ungraded activity from the "Assignment" module?';
25+
$string['settings_enabledata'] = 'Show Databases';
26+
$string['settings_configenabledata'] = 'Should Grade Me show unrate activity from the "Database" module?';
27+
$string['settings_enableforum'] = 'Show Forums';
28+
$string['settings_configenableforum'] = 'Should Grade Me show unrated activity from the "Forum" module?';
29+
$string['settings_enableglossary'] = 'Show Glossaries';
30+
$string['settings_configenableglossary'] = 'Should Grade Me show ungraded activity from the "Glossary" module?';
31+
$string['settings_enablelesson'] = 'Show Lessons';
32+
$string['settings_configenablelesson'] = 'Should Grade Me show ungraded essay activity from the "Lesson" module?';
33+
$string['settings_enablequiz'] = 'Show Quizzes';
34+
$string['settings_configenablequiz'] = 'Should Grade Me show ungraded question activity from the "Quiz" module?';
35+
$string['settings_enableworkshop'] = 'Show Workshops';
36+
$string['settings_configenableworkshop'] = 'Should Grade Me show ungraded activity from the "Workshop" module?';

lang/fr_utf8/block_grade_me.php

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
// fr
3+
/*
4+
"È" = "√©"
5+
"Ë" = "√®"
6+
"Í" = "√™"
7+
"Î" = "√´"
8+
"Ô" = "√Ø"
9+
"Ó" = "√Æ"
10+
"‡" = "√†"
11+
"‚" = "√¢"
12+
"Ù" = "√¥"
13+
"ˆ" = "√∂"
14+
"Á" = "√ß"
15+
"˘" = "√π"
16+
"Ò" = "√±"
17+
"ú" = "≈ì"
18+
" " = "√ä"
19+
*/
20+
21+
$string['pluginname'] = 'Grade Me';
22+
$string['title'] = 'Notez moi';
23+
$string['datetime'] = '%B %d, %l:%M %p';
24+
$string['excess'] = 'Il y a trop de soumissions pour les afficher toutes dans ce bloc.';
25+
$string['nothing'] = 'Rien à évaluer !';
26+
27+
$string['link_gradebook_icon'] = 'Go to {$a->course_name} gradebook…';
28+
$string['link_gradebook'] = 'Go to {$a->course_name}…';
29+
$string['link_mod_img'] = 'Go to {$a->mod_name} in gradebook…';
30+
$string['link_mod'] = 'Go to {$a->mod_name}';
31+
$string['link_grade_img'] = 'Grade assignment…';
32+
$string['link_user_profile'] = '{$a->first_name}\'s profile…';
33+
34+
$string['alt_gradebook'] = 'Go to {$a->course_name} gradebook…';
35+
$string['alt_mod'] = 'Go to {$a->mod_name} in gradebook…';
36+
$string['alt_mark'] = 'check';
37+
$string['alt_smiley'] = 'smiley';
38+
39+
$string['settings_maxitems'] = 'Maximum Ungraded Items';
40+
$string['settings_configmaxitems'] = 'This define the maximum number of ungraded items to query. Settings this too high will slow page loads.';
41+
$string['settings_enableassignment'] = 'Show Assignments';
42+
$string['settings_configenableassignment'] = 'Should Grade Me show ungraded activity from the "Assignment" module?';
43+
$string['settings_enabledata'] = 'Show Databases';
44+
$string['settings_configenabledata'] = 'Should Grade Me show unrate activity from the "Database" module?';
45+
$string['settings_enableforum'] = 'Show Forums';
46+
$string['settings_configenableforum'] = 'Should Grade Me show unrated activity from the "Forum" module?';
47+
$string['settings_enableglossary'] = 'Show Glossaries';
48+
$string['settings_configenableglossary'] = 'Should Grade Me show ungraded activity from the "Glossary" module?';
49+
$string['settings_enablelesson'] = 'Show Lessons';
50+
$string['settings_configenablelesson'] = 'Should Grade Me show ungraded essay activity from the "Lesson" module?';
51+
$string['settings_enablequiz'] = 'Show Quizzes';
52+
$string['settings_configenablequiz'] = 'Should Grade Me show ungraded question activity from the "Quiz" module?';
53+
$string['settings_enableworkshop'] = 'Show Workshops';
54+
$string['settings_configenableworkshop'] = 'Should Grade Me show ungraded activity from the "Workshop" module?';

pix/check_mark.png

336 Bytes
Loading

pix/closed.png

199 Bytes
Loading

pix/open.png

219 Bytes
Loading

settings.php

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
defined('MOODLE_INTERNAL') || die;
4+
5+
if ($ADMIN->fulltree) {
6+
7+
$settings->add(new admin_setting_configtext('block_grade_me_maxitems', get_string('settings_maxitems', 'block_grade_me'),
8+
get_string('settings_configmaxitems', 'block_grade_me'), 200, PARAM_INT));
9+
10+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enableassignment', get_string('settings_enableassignment', 'block_grade_me'),
11+
get_string('settings_configenableassignment', 'block_grade_me'), 1));
12+
13+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enabledata', get_string('settings_enabledata', 'block_grade_me'),
14+
get_string('settings_configenabledata', 'block_grade_me'), 1));
15+
16+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enableforum', get_string('settings_enableforum', 'block_grade_me'),
17+
get_string('settings_configenableforum', 'block_grade_me'), 1));
18+
19+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enableglossary', get_string('settings_enableglossary', 'block_grade_me'),
20+
get_string('settings_configenableglossary', 'block_grade_me'), 1));
21+
/*
22+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enablelesson', get_string('settings_enablelesson', 'block_grade_me'),
23+
get_string('settings_configenablelesson', 'block_grade_me'), 1));
24+
*/
25+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enablequiz', get_string('settings_enablequiz', 'block_grade_me'),
26+
get_string('settings_configenablequiz', 'block_grade_me'), 1));
27+
/*
28+
$settings->add(new admin_setting_configcheckbox('block_grade_me_enableworkshop', get_string('settings_enableworkshop', 'block_grade_me'),
29+
get_string('settings_configenableworkshop', 'block_grade_me'), 1));
30+
*/
31+
}
32+

styles.css

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
.block_grade_me .content {
2+
font-size: 0.75em !important;
3+
padding: 0 4px 4px 4px;
4+
}
5+
6+
.block_grade_me dl
7+
, .block_grade_me dt
8+
, .block_grade_me dd
9+
, .block_grade_me ul
10+
, .block_grade_me li {
11+
margin: 0;
12+
padding: 0;
13+
list-style: none;
14+
}
15+
16+
.block_grade_me .gm_icon {
17+
width: 16px;
18+
height: 16px;
19+
float: left;
20+
margin-right: 4px;
21+
}
22+
23+
.block_grade_me .cmod {
24+
line-height: 16px;
25+
margin: 6px 0 2px 0;
26+
}
27+
28+
.block_grade_me .module {
29+
line-height: 16px;
30+
position: relative;
31+
padding: 3px 0 3px 20px;
32+
}
33+
34+
.block_grade_me .toggle {
35+
position: absolute;
36+
left: 0;
37+
display: block;
38+
width: 16px;
39+
height: 16px;
40+
float: left;
41+
cursor: pointer;
42+
background: transparent url('/blocks/grade_me/pix/open.png') no-repeat 50% 50%;
43+
}
44+
45+
.jsenabled .toggle {
46+
background: transparent url('/blocks/grade_me/pix/closed.png') no-repeat 50% 50% !important;
47+
}
48+
49+
.block_grade_me .toggle.open {
50+
background: transparent url('/blocks/grade_me/pix/open.png') no-repeat 50% 50% !important;
51+
}
52+
53+
.jsenabled .block_grade_me_hide {
54+
display: none;
55+
}
56+
57+
.block_grade_me .cloakable {
58+
line-height: 1em;
59+
margin: 0 0 3px 0;
60+
border-top: 1px dotted #ccc;
61+
}
62+
63+
.block_grade_me .gradable {
64+
padding: 2px 0;
65+
border-bottom: 1px dotted #ccc;
66+
}
67+
68+
.block_grade_me .gradable .gm_icon {
69+
margin-top: 1px;
70+
}
71+
72+
.block_grade_me .cloakable * {
73+
font-size: 9px;
74+
}
75+
76+
.block_grade_me .empty {
77+
line-height: 15px;
78+
}
79+
80+
.block_grade_me .empty img {
81+
width: 15px;
82+
height: 15px;
83+
float: left;
84+
margin-right: 4px;
85+
}
86+
87+
.block_grade_me .excess {
88+
margin-top: 4px;
89+
padding: 4px 16px;
90+
text-align: center;
91+
font-weight: bold;
92+
color: rgb(205,0,0);
93+
}

version.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
// This file is part of Moodle - http://moodle.org/
4+
//
5+
// Moodle is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Moodle is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17+
18+
$plugin->version = 20110505;

0 commit comments

Comments
 (0)