Skip to content

Commit

Permalink
Add student name to grade output
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Nov 3, 2022
1 parent 81bed6d commit e51aa26
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ vendor/tsugi/lib/.gitignore
vendor/tsugi/lib/phpdoc.dist.xml
vendor/tsugi/lib/phpunit.xml.dist
vendor/tsugi/lib/tests/
vendor/tsugi/lib/scripts/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"symfony/error-handler" : "v5.3.11",
"symfony/http-kernel" : "v5.3.12",

"tsugi/lib": "dev-master#b276926b2db0ed3f7db7236a74cbf4bd6d6da3e2",
"tsugi/lib": "dev-master#b65fed4aaa1cc3a660be981295dd6987158ff3c9",
"koseu/lib": "dev-master#5c5bcb32469977bea262b1900461c3f205adb899"
},
"config": {
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -6060,12 +6060,12 @@
"source": {
"type": "git",
"url": "https://github.com/tsugiproject/tsugi-php.git",
"reference": "b276926b2db0ed3f7db7236a74cbf4bd6d6da3e2"
"reference": "b65fed4aaa1cc3a660be981295dd6987158ff3c9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/b276926b2db0ed3f7db7236a74cbf4bd6d6da3e2",
"reference": "b276926b2db0ed3f7db7236a74cbf4bd6d6da3e2",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/b65fed4aaa1cc3a660be981295dd6987158ff3c9",
"reference": "b65fed4aaa1cc3a660be981295dd6987158ff3c9",
"shasum": ""
},
"require": {
Expand All @@ -6078,7 +6078,7 @@
"phpunit/php-timer": "v5.0.3",
"phpunit/phpunit": "9.*"
},
"time": "2022-11-01T02:01:23+00:00",
"time": "2022-11-03T19:22:13+00:00",
"default-branch": true,
"type": "library",
"installation-source": "source",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '8b8e5e43c538af0d7932f1d42a57953af24ec110',
'reference' => '81bed6d80ba1e19cd460da1d9e9396ad45470b26',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '8b8e5e43c538af0d7932f1d42a57953af24ec110',
'reference' => '81bed6d80ba1e19cd460da1d9e9396ad45470b26',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -847,7 +847,7 @@
'tsugi/lib' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'b276926b2db0ed3f7db7236a74cbf4bd6d6da3e2',
'reference' => 'b65fed4aaa1cc3a660be981295dd6987158ff3c9',
'type' => 'library',
'install_path' => __DIR__ . '/../tsugi/lib',
'aliases' => array(
Expand Down
17 changes: 12 additions & 5 deletions vendor/tsugi/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Tsugi PHP Library

[![Apereo Incubating badge](https://img.shields.io/badge/apereo-incubating-blue.svg?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QUTEi0ybN9p9wAAAiVJREFUKM9lkstLlGEUxn%2Fv%2B31joou0GTFKyswkKrrYdaEQ4cZAy4VQUS2iqH%2BrdUSNYmK0EM3IkjaChnmZKR0dHS0vpN%2FMe97TIqfMDpzN4XkeDg8%2Fw45R1XNAu%2Fe%2BGTgAqLX2KzAQRVGytLR0jN2jqo9FZFRVvfded66KehH5oKr3dpueiMiK915FRBeXcjo9k9K5zLz%2B3Nz8EyAqX51zdwGMqp738NSonlxf36Cn7zX9b4eYX8gSBAE1Bw9wpLaW%2BL5KWluukYjH31tr71vv%2FU0LJ5xzdL3q5dmLJK7gON5wjEQizsTkFMmeXkbHxtHfD14WkbYQaFZVMzk1zfDHERrPnqGz4wZ1tYfJ5%2FPMLOYYW16ltrqKRDyOMcYATXa7PRayixSc4%2FKFRhrqjxKGIWVlZVQkqpg1pYyvR%2BTFF2s5FFprVVXBAAqq%2F7a9uPKd1NomeTX4HXfrvZ8D2F9dTSwWMjwywueJLxQKBdLfZunue0Mqt8qPyMHf0HRorR0ArtbX1Zkrly7yPNnN1EyafZUVZLJZxjNLlHc%2BIlOxly0RyktC770fDIGX3vuOMAxOt19vJQxD%2BgeHmE6liMVKuNPawlZ9DWu2hG8bW1Tuib0LgqCrCMBDEckWAVjKLetMOq2ZhQV1zulGVFAnohv5wrSq3tpNzwMR%2BSQi%2FyEnIl5Ehpxzt4t6s9McRdGpIChpM8Y3ATXbkKdEZDAIgqQxZrKo%2FQUk5F9Xr20TrQAAAABJRU5ErkJggg%3D%3D)](https://www.apereo.org/content/projects-currently-incubation) [![Build Status](https://travis-ci.org/tsugiproject/tsugi-php.svg?branch=master)](https://travis-ci.org/tsugiproject/tsugi-php)

This is part of the Tsugi PHP Project and contains the run-time objects and scripts that support PHP
Tsugi applications and modules.
This is part of the Tsugi PHP Project and contains the run-time objects and scripts that support PHP
Tsugi applications and modules.

* [PHP Tsugi](https://github.com/tsugiproject/tsugi)

Expand All @@ -15,11 +15,11 @@ Here is some documentation for the APIs that are provided by this library:


In addition to being used as part of the base Tsugi installs, Tsugi standalone
application or modules will generally pull this in as a
application or modules will generally pull this in as a
[Packagist](https://packagist.org/packages/tsugi/lib) dependency
using [Composer](http://getcomposer.org/).
using [Composer](http://getcomposer.org/).

For samples of how to use this code in a standalone library or an application,
For samples of how to use this code in a standalone library or an application,
please see the following repositories:

* [Sample Tsugi Module](https://github.com/tsugiproject/tsugi-php-module) - Copy
Expand Down Expand Up @@ -49,6 +49,13 @@ To run one test:

vendor/bin/phpunit --filter {EntryTest}

Pulling in to Tsugi
-------------------

Edit `composer.json` and

composer update --prefer-dist tsugi/lib

Releasing
---------

Expand Down
12 changes: 12 additions & 0 deletions vendor/tsugi/lib/src/UI/Lessons.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,18 @@ public function renderAssignments($allgrades, $buffer=false)
{
ob_start();
echo('<h1>'.$this->lessons->title."</h1>\n");
$displayname = U::get($_SESSION, 'displayname');
$email = U::get($_SESSION, 'email');
if ( is_string($displayname) || is_string($email) ) {
$output = "";
if ( is_string($displayname) ) $output .= $displayname;
if ( is_string($displayname) && is_string($email) ) $output .= ' ';
if ( is_string($email) ) $output .= $email;
echo("<p>Grades for: ");
echo(htmlentities($output));
$sig = md5("42 ".$output);
echo(" | ".substr($sig,0,5)."</p>\n");
}
echo('<table class="table table-striped table-hover "><tbody>'."\n");
$count = 0;
foreach($this->lessons->modules as $module) {
Expand Down

0 comments on commit e51aa26

Please sign in to comment.