Explorar o código

WIP: reconstruct layouts

* hide button when not logged in
Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
16003e9bcb
Modificáronse 1 ficheiros con 1 adicións e 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 %}"