Explorar o código

Updated default thumbnail

Samson Mutunga %!s(int64=3) %!d(string=hai) anos
pai
achega
a996cb564c
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      public/img/pdf.png
  2. 1 1
      resources/views/app/practice-management/handouts.blade.php

BIN=BIN
public/img/pdf.png


+ 1 - 1
resources/views/app/practice-management/handouts.blade.php

@@ -57,7 +57,7 @@
                 @foreach($handouts as $handout)
                     <tr class="{{$handout->is_active ? '' : 'bg-light text-secondary'}}">
                         <td>
-                            <img width="100" src="/api/handout/download-thumbnail/{{ $handout->uid }}" alt="{{$handout->display_name}}">
+                            <img width="100" src="/api/handout/download-thumbnail/{{ $handout->uid }}" alt="{{$handout->display_name}}"  onerror="if (this.src != '/img/pdf.png') this.src = '/img/pdf.png';">
                         </td>
                         <td>{{ $handout->display_name }}</td>
                         <td>{{ $handout->internal_name }}</td>