Update utils with to make letters unclickable

Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/159

Means:
- renaming a bunch of things
- removing any CSS that targeted the link, and making it target the
  containing element too
This commit is contained in:
Chris Hill-Scott
2017-04-28 16:04:52 +01:00
parent 243553a3c8
commit d1cd74daa8
5 changed files with 36 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ from flask_login import current_user
from notifications_utils.template import (
SMSPreviewTemplate,
EmailPreviewTemplate,
LetterPDFLinkTemplate,
LetterImageTemplate,
LetterPreviewTemplate,
)
@@ -274,9 +274,9 @@ def get_template(
)
if 'letter' == template['template_type']:
if letter_preview_url:
return LetterPDFLinkTemplate(
return LetterImageTemplate(
template,
preview_url=letter_preview_url,
image_url=letter_preview_url,
page_count=int(page_count),
)
else: