<%

from django.core.urlresolvers import reverse

def _message(reqm, message):
    return message.format(link="<a href={url}>{url_name}</a>".format(
        url = reverse('jump_to', kwargs=dict(course_id=reqm.course_id.to_deprecated_string(),
                        location=reqm.location.to_deprecated_string())),
        url_name = reqm.display_name_with_default_escaped))
%>
% if message:
	% for reqm in module.required_modules:
		<p class="conditional-message">${_message(reqm, message)}</p>
	% endfor
% endif
