Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Vips
Commits
ac24b2df
Commit
ac24b2df
authored
Mar 8, 2022
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
add missing file, re #118
parent
4b79d6a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/vips.css
+4
-4
4 additions, 4 deletions
css/vips.css
views/exercises/courseware_block.php
+68
-0
68 additions, 0 deletions
views/exercises/courseware_block.php
with
72 additions
and
4 deletions
css/vips.css
+
4
−
4
View file @
ac24b2df
...
@@ -65,6 +65,10 @@ form.default fieldset {
...
@@ -65,6 +65,10 @@ form.default fieldset {
padding-top
:
0px
;
padding-top
:
0px
;
}
}
form
.default
.cw-exercise-fieldset
{
padding-top
:
1.5ex
;
}
form
.default
fieldset
:not
(
.collapsed
)
>
label
:last-child::after
{
form
.default
fieldset
:not
(
.collapsed
)
>
label
:last-child::after
{
content
:
none
;
content
:
none
;
}
}
...
@@ -602,10 +606,6 @@ button.vips_file_upload:hover {
...
@@ -602,10 +606,6 @@ button.vips_file_upload:hover {
height
:
4px
;
height
:
4px
;
}
}
.cw-exercise-fieldset
{
padding-top
:
1.5ex
;
}
.cw-exercise-fieldset
header
{
.cw-exercise-fieldset
header
{
background-color
:
#e7ebf1
;
background-color
:
#e7ebf1
;
background-color
:
var
(
--fieldset-header
,
#e7ebf1
);
background-color
:
var
(
--fieldset-header
,
#e7ebf1
);
...
...
This diff is collapsed.
Click to expand it.
views/exercises/courseware_block.php
0 → 100644
+
68
−
0
View file @
ac24b2df
<?
setlocale
(
LC_NUMERIC
,
$_SESSION
[
'_language'
]
.
'.UTF-8'
)
?>
<?
if
(
$tries_left
>
0
&&
!
$show_solution
)
:
?>
<?=
MessageBox
::
warning
(
sprintf
(
n_vips
(
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weiteren Versuch.'
,
'Ihr Lösungsversuch war nicht korrekt. Sie haben noch %d weitere Versuche.'
,
$tries_left
),
$tries_left
))
?>
<?
endif
?>
<div
class=
"description"
>
<?=
formatReady
(
$exercise
->
description
)
?>
</div>
<?=
$this
->
render_partial
(
'exercises/show_exercise_hint'
)
?>
<?
if
(
count
(
$exercise
->
files
)
&&
!
$exercise
->
options
[
'files_hidden'
])
:
?>
<div
class=
"label-text"
>
<?=
_vips
(
'Dateien zur Aufgabe:'
)
?>
</div>
<ul>
<?
foreach
(
$exercise
->
files
as
$file
)
:
?>
<li>
<a
href=
"
<?=
htmlReady
(
$file
->
getDownloadURL
())
?>
"
>
<?=
htmlReady
(
$file
->
name
)
?>
</a>
</li>
<?
endforeach
?>
</ul>
<?
endif
?>
<?=
$this
->
render_partial
(
$exercise_template
)
?>
<?
if
(
$show_solution
)
:
?>
<?
if
(
$exercise
->
options
[
'comment'
]
&&
$solution
->
student_comment
!=
''
)
:
?>
<div
class=
"label-text"
>
<?=
_vips
(
'Bemerkungen zur Lösung'
)
?>
</div>
<div
class=
"vips_output"
>
<?=
htmlReady
(
$solution
->
student_comment
,
true
,
true
)
?>
</div>
<?
endif
?>
<header>
<?=
_vips
(
'Bewertung'
)
?>
</header>
<?
if
(
$solution
->
corrector_comment
!=
''
)
:
?>
<div
class=
"label-text"
>
<?=
_vips
(
'Anmerkungen zur Lösung'
)
?>
</div>
<div
class=
"vips_output"
>
<?=
formatReady
(
$solution
->
corrector_comment
)
?>
</div>
<?
endif
?>
<div
class=
"description"
>
<?=
sprintf
(
_vips
(
'Erreichte Punkte: %s von %s'
),
(
float
)
$reached_points
,
(
float
)
$max_points
)
?>
</div>
<?
else
:
?>
<?
if
(
$exercise
->
options
[
'comment'
])
:
?>
<label>
<?=
_vips
(
'Bemerkungen zur Lösung (optional)'
)
?>
<textarea
name=
"student_comment"
>
<?=
htmlReady
(
$solution
->
student_comment
)
?>
</textarea>
</label>
<?
endif
?>
<?
endif
?>
<?
setlocale
(
LC_NUMERIC
,
'C'
)
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment