Skip to content

Commit

Permalink
Merge pull request #56 from appsembler/feature/amc-hide-cert-url
Browse files Browse the repository at this point in the history
add a setting to disable cert url display
  • Loading branch information
grozdanowski authored Jan 10, 2019
2 parents a2d3270 + f60ab57 commit 620477a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lms/templates/certificates/_accomplishment-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ <h2 class="course-name-main"><span class="course-organization">${cert_org_name}<
Date issued: <b>${certificate_date_issued}</b>
</div>
</div>
<div class="info-bottom">
Verify the authenticity of this certificate at <a href="https://${request.site}/certificates/user/${accomplishment_user_id}/course/${course_id}">https://${request.site}/certificates/user/${accomplishment_user_id}/course/${course_id}</a>
</div>
% if (get_certificates_settings()['certificate_show_url']):
<div class="info-bottom">
Verify the authenticity of this certificate at <a href="https://${request.site}/certificates/user/${accomplishment_user_id}/course/${course_id}">https://${request.site}/certificates/user/${accomplishment_user_id}/course/${course_id}</a>
</div>
% endif
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions lms/templates/theme-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
'accomplishment_icon': get_value('certificates', {}).get('cert_accomplishment_icon', ''),
'accomplishment_icon_width': get_value('certificates', {}).get('cert_accomplishment_icon_width', '60px'),
'certificate_custom_org_name': translate(get_value('certificates', {}).get('certificate_custom_org_name', "")),
'certificate_show_url': get_value('certificates', {}).get('certificate_show_url', True),
}
%>
</%def>

0 comments on commit 620477a

Please sign in to comment.