{% if (doctype === "Communication") { %} {% } else { %} {% if (allow_events_in_timeline===1) { %} {% } %} {% } %}