Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-08-15 15:28:50 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
f52847fd583c7ef8ffd5d8409302b950a511ef49
notifications-admin/app/templates/views/notifications/invalid_precompiled_letter.html

18 lines
382 B
HTML
Raw Normal View History

Show error message if precompiled PDF cannot be opened If PDF files have a validation error which means that they can't be opened by PyPDF2 we would previously show the 500 status error page. We now catch PyPDF2.utils.PdfReadErrors so that we can display a custom error message on the notification page instead.
2019-01-08 17:34:57 +00:00
{% extends "withnav_template.html" %}
{% block service_page_title %}
Letter
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Letter</h1>
<p>
Provided as PDF on {{ created_at|format_datetime_short }}
</p>
<p class="notification-status-cancelled">
Update app/templates/views/notifications/invalid_precompiled_letter.html
2019-09-23 11:11:11 +01:00
Validation failed – Notify cannot read this PDF file
Show error message if precompiled PDF cannot be opened If PDF files have a validation error which means that they can't be opened by PyPDF2 we would previously show the 500 status error page. We now catch PyPDF2.utils.PdfReadErrors so that we can display a custom error message on the notification page instead.
2019-01-08 17:34:57 +00:00
</p>
{% endblock %}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 2195ms Template: 81ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API