diff --git a/seahub/templates/myhome.html b/seahub/templates/myhome.html index 33e604a917..08900ddf01 100644 --- a/seahub/templates/myhome.html +++ b/seahub/templates/myhome.html @@ -92,7 +92,7 @@ {% include "snippets/my_owned_repos.html" %} -{% if events %} +{% if ENABLE_EVENTS %} {% include "snippets/events.html" %} {% endif %} @@ -124,7 +124,7 @@ {% include "snippets/repo_create_js.html" %} {% endwith %} -{% if events %} +{% if ENABLE_EVENTS %} {% include "snippets/events_js.html" %} {% endif %} diff --git a/seahub/templates/snippets/events.html b/seahub/templates/snippets/events.html index dc75a8dc3e..cdb1f8b6f4 100644 --- a/seahub/templates/snippets/events.html +++ b/seahub/templates/snippets/events.html @@ -5,9 +5,7 @@ {% include "snippets/events_body.html" %}