Skip to content

Commit

Permalink
Merge pull request #552 from edly-io/alisalman/fix-certificate
Browse files Browse the repository at this point in the history
fix: update date to English and default printing to A3
  • Loading branch information
Ali-Salman29 authored Jun 21, 2024
2 parents ff1a422 + 557e677 commit d7304ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lms/djangoapps/certificates/views/webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _update_certificate_context(context, course, course_overview, user_certifica
else:
date = display_date_for_certificate(course, user_certificate)
# Translators: The format of the date includes the full name of the month
date = strftime_localized(date, "%B %-d, %Y")
date = date.strftime("%B %-d, %Y")
context['certificate_date_issued'] = date
# SDAIA: Adding Date in Arabic
context['arabic_certificate_date_issued'] = convert_date_to_arabic(date)
Expand Down
6 changes: 4 additions & 2 deletions lms/templates/certificates/_accomplishment-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SDAIA Academy - Certificate of completion</title>
<style>
@page {
size: A2;
@media print {
@page {
size: A3 landscape;
}
}
</style>
</head>
Expand Down

0 comments on commit d7304ad

Please sign in to comment.