Skip to content
Snippets Groups Projects
Commit 3c3fa3e9 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

enable assignment pool for students, fixes #177

parent 9787b8e0
No related branches found
No related tags found
No related merge requests found
......@@ -91,13 +91,13 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
$path = vips_contents_nav_path();
if ($perm->have_perm('tutor') && Navigation::hasItem($path)) {
if (Navigation::hasItem($path)) {
if (version_compare($GLOBALS['SOFTWARE_VERSION'], '5.0', '<')) {
$nav_item = new Navigation(_vips('Meine Aufgaben'));
} else {
$nav_item = new Navigation(_vips('Aufgaben'));
$nav_item->setImage(Icon::create(vips_image_url('vips_blue.svg')));
$nav_item->setDescription(_vips('Übersicht über alle Aufgaben in Vips'));
$nav_item->setDescription(_vips('Erstellen und Verwalten von Aufgaben in Vips'));
}
Navigation::addItem($path . '/vips', $nav_item);
......@@ -182,6 +182,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
$navigation->addSubNavigation('course', $course);
$vips = new Navigation($this->getPluginName());
$vips->setImage(Icon::create(vips_image_url('vips_white.svg')));
$course->addSubNavigation('vips', $vips);
$nav_item = new Navigation(_vips('Aufgabenblätter'), $this->url_for('sheets'));
......@@ -273,6 +274,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
public function getTabNavigation($course_id)
{
$navigation = new Navigation($this->getPluginName());
$navigation->setImage(Icon::create(vips_image_url('vips_white.svg')));
$nav_item = new Navigation(_vips('Aufgabenblätter'), $this->url_for('sheets'));
$navigation->addSubNavigation('sheets', $nav_item);
......
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="-2 0 18 18">
<g>
<path fill="#FFFFFF" d="M13.67,7.312v6.781c0,1.053-0.862,1.907-1.921,1.907H1.917c-1.058,0-1.921-0.854-1.921-1.907V4.329
c0-1.053,0.863-1.908,1.921-1.908h9.832c0.475,0,0.911,0.171,1.244,0.458l-0.982,0.983c-0.076-0.043-0.167-0.067-0.262-0.067H1.917
c-0.297,0-0.538,0.24-0.538,0.535v9.764c0,0.296,0.241,0.534,0.538,0.534h9.832c0.297,0,0.54-0.238,0.54-0.534V8.69L13.67,7.312z"/>
</g>
<polygon fill="#FFFFFF" points="8.341,11.406 16.005,3.742 14.684,2.422 7.02,10.087 3.902,6.97 2.582,8.29 7.018,12.728
7.02,12.728 7.02,12.728 8.086,11.662 8.341,11.406 "/>
</svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment