Browse Source

use 👻 icon when user name is empty

Son NK 5 years ago
parent
commit
97136d025e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/header.html

+ 1 - 1
templates/header.html

@@ -17,7 +17,7 @@
             {% if current_user.profile_picture_id %}
               <span class="avatar" style="background-image: url('{{ current_user.profile_picture_url() }}')"></span>
             {% else %}
-              <span class="avatar avatar-blue">{{ current_user.get_name_initial() }}</span>
+              <span class="avatar avatar-blue">{{ current_user.get_name_initial() or "👻" }}</span>
             {% endif %}
 
             <span class="ml-2 d-none d-lg-block">