Sfoglia il codice sorgente

Merge pull request #2565 from weseek/fix/disappear-user-image-in-page-list

disappear user image in page list
Yuki Takei 5 anni fa
parent
commit
296f06b876
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/server/views/widget/page_list.html

+ 1 - 1
src/server/views/widget/page_list.html

@@ -8,7 +8,7 @@
 {% endif %}
 {% endif %}
 
 
 <li>
 <li>
-  <img src="{{ listPage.lastUpdateUser.imageUrlCached }}" class="picture rounded-circle">
+  <img src="{{ listPage.lastUpdateUser.imageUrlCached|default('/images/icons/user.svg') }}" class="picture rounded-circle">
   <a href="{{ encodeURI(listPage.path) }}" class="text-break ml-1">
   <a href="{{ encodeURI(listPage.path) }}" class="text-break ml-1">
     {{ listPage.path | preventXss }}
     {{ listPage.path | preventXss }}
   </a>
   </a>