<div class="ibo-activity-entry {% if oUIBlock.IsFromCurrentUser() %}ibo-is-current-user{% endif %} {% block iboActivityEntryExtraClasses %}{% endblock %}"
     data-role="ibo-activity-entry"
     data-entry-type="{% block iboActivityEntryType %}{{ oUIBlock.GetType() }}{% endblock %}"
     data-entry-datetime-raw="{{ oUIBlock.GetRawDateTime() }}"
	 data-entry-author-login="{{ oUIBlock.GetAuthorLogin() }}"
	 {% block iboActivityEntryExtraDataAttributes %}{% endblock %}>
	<div class="ibo-activity-entry--medallion {% if oUIBlock.GetAuthorPictureAbsUrl() is not empty %}ibo-has-image{% endif %}" data-role="ibo-activity-entry--medallion" data-tooltip-content="{{ oUIBlock.GetAuthorFriendlyname() }}">
		{% block iboActivityEntryMedallion %}
			{% if oUIBlock.GetAuthorPictureAbsUrl() is not empty %}
				<img class="ibo-activity-entry--author-picture" src="{{ oUIBlock.GetAuthorPictureAbsUrl() }}" alt="{{ oUIBlock.GetAuthorInitials() }}">
			{% else %}
				<div class="ibo-activity-entry--author-initials">{{ oUIBlock.GetAuthorInitials() }}</div>
			{% endif %}
		{% endblock %}
	</div>
	<div class="ibo-activity-entry--information" data-role="ibo-activity-entry--information">
		{% block iboActivityEntryInformation %}
			<div class="ibo-activity-entry--main-information" data-role="ibo-activity-entry--main-information">
				<div class="ibo-activity-entry--main-information-icon" data-role="ibo-activity-entry--main-information-icon">
					{% block iboActivityEntryMainInformationIcon %}
						{% if oUIBlock.GetDecorationClasses() is not empty %}
							<span class="{{ oUIBlock.GetDecorationClasses() }}"></span>
						{% endif %}
					{% endblock %}
				</div>
				<div class="ibo-activity-entry--main-information-content" data-role="ibo-activity-entry--main-information-content">
					{% block iboActivityEntryMainInformationContent %}
						{# Content is printed as raw because it is stored as HTML in the database and should have been sanitized before storage, so we can assume it is safe #}
						{{ oUIBlock.GetContent()|raw }}
					{% endblock %}
				</div>
			</div>
			<div class="ibo-activity-entry--sub-information" data-role="ibo-activity-entry--sub-information">
				{% block iboActivityEntrySubInformation %}
                    {% if get_config_parameter('activity_panel.show_author_name_below_entries') %}
                        <span class="ibo-activity-entry--author-name ibo-is-hidden" data-role="ibo-activity-entry--author-name">
                            {{ oUIBlock.GetAuthorFriendlyname() }}
                        </span>
                    {% endif %}
                    <span class="ibo-activity-entry--datetime" data-role="ibo-activity-entry--datetime"
                          data-tooltip-content="{{ oUIBlock.GetFormattedDateTime() }}"
                          data-raw-datetime="{{ oUIBlock.GetRawDateTime() }}"
                          data-formatted-datetime="{{ oUIBlock.GetFormattedDateTime() }}">{{ oUIBlock.GetFormattedDateTime() }}</span>
                {% endblock %}
			</div>
		{% endblock %}
	</div>
</div>