Skip to content

Commit

Permalink
detail: add image onerror inline js to script
Browse files Browse the repository at this point in the history
  • Loading branch information
jennur authored and kpsherva committed Jul 7, 2022
1 parent 1c2f905 commit d3346f5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
{%- set show_record_management_menu = can_manage_record and (not is_preview or is_preview_submission_request) %}

{%- block page_body %}

<section id="banners" class="banners" aria-label="{{ _('Information banner') }}">

<!-- COMMUNITY HEADER: hide it when displaying the submission request -->
Expand All @@ -43,9 +44,10 @@
<div class="ui container page-subheader">
<div class="page-subheader-element ">
<img
class="ui tiny image community-header-logo"
class="ui tiny image community-header-logo has-placeholder"
src="{{ community.links.logo }}"
onerror="this.onerror=null;this.src='/static/images/square-placeholder.png';" alt=""/>
alt=""
/>
</div>
<div class="page-subheader-element">
<a
Expand Down

0 comments on commit d3346f5

Please sign in to comment.