Skip to content

Commit

Permalink
Merge pull request #108 from UiL-OTS-labs/feature/fix-pdf-error
Browse files Browse the repository at this point in the history
Merging this into 1.11 without really fixing the underlying issue, because at least this alleviates the symptoms in production while I'm struggling to fix it. Creating a new issue to remind us of this for the 2.2 move.
  • Loading branch information
miggol authored Jan 12, 2021
2 parents 9604efa + c1dffb4 commit d6b7628
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion proposals/templates/proposals/proposal_pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,15 @@ <h2 style="page-break-before: always">{% trans "Aanmelding bij de METC" %}</h2>
<tr>
<th>{% get_verbose_field_name "proposals" "wmo" "metc_decision" %}</th><td>{{ wmo.metc_decision|yesno:_("ja,nee") }}</td>
</tr>
{% if not proposal.is_practice %}
{% if wmo.metc_decision_pdf and not proposal.is_practice %}
<tr>
<th>{% get_verbose_field_name "proposals" "wmo" "metc_decision_pdf" %}</th><td><a href="{{ BASE_URL }}{{ wmo.metc_decision_pdf.url }}" target="_blank">{% trans "Download" %}</a></td>
</tr>
{% else %}
<tr>
<th>{% get_verbose_field_name "proposals" "wmo" "metc_decision_pdf" %}</th>
<td>{% trans "Niet aangeleverd" %}</td>
</tr>
{% endif %}
</table>
{% endif %}
Expand Down

0 comments on commit d6b7628

Please sign in to comment.