## mako
<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from provider.templatetags.scope import scopes
from django.core.urlresolvers import reverse
from openedx.core.djangolib.markup import HTML, Text
%>
<%inherit file="../main.html"/>
<%block name="bodyclass">oauth2%block>
<%block name="body">
% if not error:
${Text(_("{start_strong}{application_name}{end_strong} would like to access your data with the following permissions:")).format(
start_strong=HTML(""),
application_name=client.name,
end_strong=HTML("")
)}
% for permission in scopes(oauth_data['scope']):
-
% if permission == "openid":
${_("Read your user ID")}
% elif permission == "profile":
${_("Read your user profile")}
% elif permission == "email":
${_("Read your email address")}
% elif permission == "course_staff":
${_("Read the list of courses in which you are a staff member.")}
% elif permission == "course_instructor":
${_("Read the list of courses in which you are an instructor.")}
% elif permission == "permissions":
${_("To see if you are a global staff user")}
% else:
${_("Manage your data: {permission}").format(permission=permission)}
% endif
% endfor
% else:
${error}
${error_description}
% endif
%block>