Skip to content
Snippets Groups Projects
Commit 3b0ca52e authored by srosse's avatar srosse
Browse files

Merge remote-tracking branch 'origin/OpenOLAT_15.0'

parents 0798354c c3fe231e
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ public class GTACoachSelectionController extends BasicController implements Acti
downloadButton = LinkFactory.createButton("bulk.download.title", mainVC, this);
downloadButton.setTranslator(getTranslator());
downloadButton.setVisible(isDownloadAvailable());
PublisherData publisherData = gtaManager.getPublisherData(courseEnv, gtaNode, markedOnly);
SubscriptionContext subsContext = gtaManager.getSubscriptionContext(courseEnv, gtaNode, markedOnly);
......@@ -141,6 +142,14 @@ public class GTACoachSelectionController extends BasicController implements Acti
putInitialPanel(mainVC);
}
private boolean isDownloadAvailable() {
ModuleConfiguration config = gtaNode.getModuleConfiguration();
return config.getBooleanSafe(GTACourseNode.GTASK_SUBMIT)
|| config.getBooleanSafe(GTACourseNode.GTASK_REVIEW_AND_CORRECTION)
|| config.getBooleanSafe(GTACourseNode.GTASK_REVISION_PERIOD)
|| config.getBooleanSafe(GTACourseNode.GTASK_GRADING);
}
@Override
protected void doDispose() {
......
......@@ -16,14 +16,15 @@
$r.render("selection")
#elseif($r.available("list"))
#if($r.available("contextualSubscription") || $r.available("bulk.download.title"))
<div class="o_button_group o_button_group_right">
$r.render("bulk.download.title")
#if($r.available("bulk.download.title"))
$r.render("bulk.download.title")
#end
#if($r.available("contextualSubscription"))
<div style="display:inline-block;">
$r.render("contextualSubscription")
</div>
</div>
<div style="display:inline-block;">$r.render("contextualSubscription")</div>
#end
</div>
#end
$r.render("list")
#end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment