Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
065e2e1c
Commit
065e2e1c
authored
8 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 10.5 to OpenOLAT 11.1 with 485bae0230efa6d5155ebc74e129c698f0e45355
parents
0c46a297
63d95e88
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/course/nodes/iq/IQConfigurationController.java
+10
-8
10 additions, 8 deletions
...a/org/olat/course/nodes/iq/IQConfigurationController.java
src/main/java/org/olat/course/nodes/iq/_content/edit.html
+1
-7
1 addition, 7 deletions
src/main/java/org/olat/course/nodes/iq/_content/edit.html
with
11 additions
and
15 deletions
src/main/java/org/olat/course/nodes/iq/IQConfigurationController.java
+
10
−
8
View file @
065e2e1c
...
@@ -92,6 +92,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -92,6 +92,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
de.bps.onyx.plugin.OnyxModule
;
import
de.bps.onyx.plugin.OnyxModule
;
import
de.bps.onyx.plugin.course.nodes.iq.IQEditForm
;
import
de.bps.onyx.plugin.course.nodes.iq.IQEditForm
;
import
de.bps.onyx.plugin.run.OnyxRunController
;
import
de.bps.webservices.clients.onyxreporter.OnyxReporterConnector
;
import
de.bps.webservices.clients.onyxreporter.OnyxReporterConnector
;
import
de.bps.webservices.clients.onyxreporter.OnyxReporterException
;
import
de.bps.webservices.clients.onyxreporter.OnyxReporterException
;
...
@@ -193,12 +194,8 @@ public class IQConfigurationController extends BasicController {
...
@@ -193,12 +194,8 @@ public class IQConfigurationController extends BasicController {
previewLink
=
LinkFactory
.
createCustomLink
(
"command.preview"
,
"command.preview"
,
displayName
,
Link
.
NONTRANSLATED
,
myContent
,
this
);
previewLink
=
LinkFactory
.
createCustomLink
(
"command.preview"
,
"command.preview"
,
displayName
,
Link
.
NONTRANSLATED
,
myContent
,
this
);
previewLink
.
setIconLeftCSS
(
"o_icon o_icon-fw o_icon_preview"
);
previewLink
.
setIconLeftCSS
(
"o_icon o_icon-fw o_icon_preview"
);
if
(
isOnyx
)
{
previewLink
.
setCustomEnabledLinkCSS
(
"o_preview"
);
previewLink
.
setEnabled
(
false
);
previewLink
.
setTitle
(
translate
(
"command.preview"
));
}
else
{
previewLink
.
setCustomEnabledLinkCSS
(
"o_preview"
);
previewLink
.
setTitle
(
translate
(
"command.preview"
));
}
}
}
String
disclaimer
=
(
String
)
moduleConfiguration
.
get
(
IQEditController
.
CONFIG_KEY_DISCLAIMER
);
String
disclaimer
=
(
String
)
moduleConfiguration
.
get
(
IQEditController
.
CONFIG_KEY_DISCLAIMER
);
...
@@ -374,9 +371,14 @@ public class IQConfigurationController extends BasicController {
...
@@ -374,9 +371,14 @@ public class IQConfigurationController extends BasicController {
removeAsListenerAndDispose
(
previewLayoutCtr
);
removeAsListenerAndDispose
(
previewLayoutCtr
);
RepositoryEntry
re
=
getIQReference
(
moduleConfiguration
,
false
);
RepositoryEntry
re
=
getIQReference
(
moduleConfiguration
,
false
);
if
(
re
!=
null
&&
!
OnyxModule
.
isOnyxTest
(
re
.
getOlatResource
())
)
{
if
(
re
!=
null
)
{
Controller
previewController
;
Controller
previewController
;
if
(
ImsQTI21Resource
.
TYPE_NAME
.
equals
(
re
.
getOlatResource
().
getResourceableTypeName
()))
{
if
(
OnyxModule
.
isOnyxTest
(
re
.
getOlatResource
()))
{
Controller
previewCtrl
=
new
OnyxRunController
(
ureq
,
getWindowControl
(),
re
,
false
);
listenTo
(
previewCtrl
);
previewLayoutCtr
=
new
LayoutMain3ColsController
(
ureq
,
getWindowControl
(),
previewCtrl
);
stackPanel
.
pushController
(
translate
(
"preview"
),
previewLayoutCtr
);
}
else
if
(
ImsQTI21Resource
.
TYPE_NAME
.
equals
(
re
.
getOlatResource
().
getResourceableTypeName
()))
{
//TODO qti
//TODO qti
/* need to clean up the assessment test session
/* need to clean up the assessment test session
QTI21DeliveryOptions deliveryOptions = qti21service.getDeliveryOptions(re);
QTI21DeliveryOptions deliveryOptions = qti21service.getDeliveryOptions(re);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/course/nodes/iq/_content/edit.html
+
1
−
7
View file @
065e2e1c
...
@@ -12,13 +12,7 @@
...
@@ -12,13 +12,7 @@
#if ($dontRenderRepositoryButton)
#if ($dontRenderRepositoryButton)
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-3"
>
$r.translate("file.name")
</label>
<label
class=
"control-label col-sm-3"
>
$r.translate("file.name")
</label>
<div
class=
"col-sm-9"
><p
class=
"form-control-static"
>
<div
class=
"col-sm-9"
><p
class=
"form-control-static"
>
$r.render("command.preview")
</div>
#if ($isOnyx)
$onyxDisplayName
#else
$r.render("command.preview")
#end
</p>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-3 col-sm-9"
>
<div
class=
"col-sm-offset-3 col-sm-9"
>
...
...
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