Skip to content

Commit 689516d

Browse files
committed
Gradebook: add certificat pdf export blocking for session as it is for courses -refs BT#21503
1 parent d307c15 commit 689516d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/template/default/gradebook/my_certificates.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@
6060
<td>{{ row.course }}</td>
6161
<td class="text-right">{{ row.score }}</td>
6262
<td class="text-center">{{ row.date }}</td>
63+
{% if allow_export %}
6364
<td class="text-right">
6465
<a href="{{ row.pdf }}" target="_blank" class="btn btn-primary btn-block">
6566
<i class="fa fa-file-pdf-o" aria-hidden="true"></i>
6667
{{ 'DownloadCertificatePdf'|get_lang }}
6768
</a>
6869
</td>
70+
{% endif %}
6971
<td class="text-right">
7072
<a href="{{ row.link }}" target="_blank" class="btn btn-default btn-block">
7173
<em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}

0 commit comments

Comments
 (0)