Merge pull request #8281 from scmmishra/logged-in

refactor: added logged in status in body tag
This commit is contained in:
Shivam Mishra 2019-08-28 15:41:49 +05:30 committed by GitHub
commit 2e4991ba1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 %}