change verification link for erasure certificate doc
This commit is contained in:
parent
83eeace6fa
commit
e1cca540c4
|
@ -102,13 +102,10 @@ class DocumentView(DeviceView):
|
||||||
|
|
||||||
url_pdf = boltons.urlutils.URL(flask.request.url)
|
url_pdf = boltons.urlutils.URL(flask.request.url)
|
||||||
url_pdf.query_params['format'] = 'PDF'
|
url_pdf.query_params['format'] = 'PDF'
|
||||||
url_web = boltons.urlutils.URL(flask.request.url)
|
|
||||||
url_web.query_params['format'] = 'HTML'
|
|
||||||
params = {
|
params = {
|
||||||
'title': 'Erasure Certificate',
|
'title': 'Erasure Certificate',
|
||||||
'erasures': tuple(erasures()),
|
'erasures': tuple(erasures()),
|
||||||
'url_pdf': url_pdf.to_text(),
|
'url_pdf': url_pdf.to_text()
|
||||||
'url_web': url_web.to_text()
|
|
||||||
}
|
}
|
||||||
return flask.render_template('documents/erasure.html', **params)
|
return flask.render_template('documents/erasure.html', **params)
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,6 @@
|
||||||
<a href="{{ url_pdf }}">Click here to download the PDF.</a>
|
<a href="{{ url_pdf }}">Click here to download the PDF.</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="print-only">
|
<div class="print-only">
|
||||||
<a href="{{ url_web }}">Verify on-line the integrity of this document</a>
|
<a href="{{ url_for('Document.StampsView', _external=True) }}">Verify on-line the integrity of this document</a>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in New Issue