<%

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,
                        location=reqm.location.url())),
        url_name = reqm.display_name_with_default))
%>
% if message:
	% for reqm in module.required_modules:
		<p>${_message(reqm, message)}</p>
	% endfor
% endif
