Explorar el Código

WIP: reconstruct layouts

* hide button when not logged in
Yuki Takei hace 8 años
padre
commit
16003e9bcb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/views/widget/user_page_header.html

+ 1 - 1
lib/views/widget/user_page_header.html

@@ -22,7 +22,7 @@
         </div>
       </div>
       <div>
-        {% if page %}
+        {% if page and user %}
         <button
             data-csrftoken="{{ csrf() }}"
             data-liked="{% if page.isLiked(user) %}1{% else %}0{% endif %}"