Skip to content

Commit

Permalink
Make the application view more printer friendly (#4229)
Browse files Browse the repository at this point in the history
Fixes #4228. Makes hypha more printer friendly by not printing user
menus, the cookie consent prompt, or the hijack prompt.
  • Loading branch information
wes-otf authored Nov 25, 2024
1 parent dec8d27 commit 5c578c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h5>{% blocktrans with stage=object.previous.stage %}Your {{ stage }} applicatio
{% display_submission_author True %}
</strong>
</span>
<div class="flex gap-4 justify-end flex-1 items-center">
<div class="flex gap-4 justify-end flex-1 items-center no-print">
{% can "delete_submission" object as can_delete_submission %}
{% if can_delete_submission %}
<a
Expand Down
3 changes: 3 additions & 0 deletions hypha/static_src/sass/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ footer,
.tabs__container,
.js-actions-toggle,
.js-actions-sidebar,
.cookieconsent,
.djhj,
.no-print,
.section--share {
display: none !important;
}
2 changes: 1 addition & 1 deletion hypha/templates/base-apply.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% endif %}
{% endblock %}

<div class="flex gap-2">
<div class="flex gap-2 no-print">
{% if request.user.is_authenticated and request.user.is_apply_staff %}
{% include "includes/menu-notifications.html" %}
{% endif %}
Expand Down

0 comments on commit 5c578c6

Please sign in to comment.