## mako

<%page expression_filter="h"/>
<%namespace name='static' file='../static_content.html'/>

<%!
from django.utils.translation import get_language_bidi
from openedx.core.djangolib.markup import HTML
from openedx.features.course_experience import CourseHomeMessages
%>

<%
is_rtl = get_language_bidi()
%>

% if course_home_messages:
    % for message in course_home_messages:
        <div class="course-message grid-manual">
            % if not is_rtl:
                <img class="message-author col col-2" src="${static.url(image_src)}"/>
            % endif
            <div class="message-content col col-9">
                ${HTML(message.message_html)}
            </div>
            % if is_rtl:
                <img class="message-author col col-2" src="${static.url(image_src)}"/>
            % endif
        </div>
    % endfor
% endif
