refactor: added logged in status in body tag

This commit is contained in:
Shivam Mishra 2019-08-28 13:20:00 +05:30
parent 421f070e78
commit e4c009c514

View file

@ -52,7 +52,7 @@
window.socketio_port = {{ frappe.socketio_port }};
</script>
</head>
<body data-path="{{ path | e }}" {%- if template and template.endswith('.md') %} frappe-content-type="markdown" {% endif -%}>
<body frappe-session-status="{{ 'logged-in' if frappe.session.user != 'Guest' else 'logged-out'}}" data-path="{{ path | e }}" {%- if template and template.endswith('.md') %} frappe-content-type="markdown" {% endif -%}>
{%- block banner -%}
{% include "templates/includes/banner_extension.html" ignore missing %}