diff --git a/templates/problem/problem.html b/templates/problem/problem.html index 65bd6a3..9dab1f6 100644 --- a/templates/problem/problem.html +++ b/templates/problem/problem.html @@ -41,11 +41,28 @@ .problem-info-entry { padding-top: 0.5em; } + + #raw_problem { + visibility: hidden; + width: 0; + height: 0; + } {% endblock %} {% block content_js_media %} {% include "comments/media-js.html" %} + {% endblock %} {% block title_row %} @@ -81,16 +98,19 @@ {% endfor %} {% endif %} - {% if has_pdf_render %} - - - + + + {% if has_render %} + - {{ _('View as PDF') }} - + {% else %} + {% endif %} + {% endblock %} @@ -324,6 +344,7 @@ {% else %} {% include "comments/list.html" %} {% endif %} + {% endblock %} {% block bodyend %} diff --git a/templates/problem/raw.html b/templates/problem/raw.html index 573db37..bca3412 100644 --- a/templates/problem/raw.html +++ b/templates/problem/raw.html @@ -1,6 +1,8 @@ + {{ _('View as PDF') }} +
+ + @@ -79,18 +81,18 @@