Commit 8d1dfa77 by Chris Dodge

Switch over to get links from configuration not hard coded

parent aa703a40
...@@ -1005,6 +1005,7 @@ def get_student_view(user_id, course_id, content_id, ...@@ -1005,6 +1005,7 @@ def get_student_view(user_id, course_id, content_id,
'edx_proctoring.proctored_exam.attempt', 'edx_proctoring.proctored_exam.attempt',
args=[attempt['id']] args=[attempt['id']]
) if attempt else '', ) if attempt else '',
'link_urls': settings.PROCTORING_SETTINGS.get('LINK_URLS', {}),
}) })
return template.render(django_context) return template.render(django_context)
......
...@@ -62,6 +62,7 @@ def start_exam_callback(request, attempt_code): # pylint: disable=unused-argume ...@@ -62,6 +62,7 @@ def start_exam_callback(request, attempt_code): # pylint: disable=unused-argume
Context({ Context({
'exam_attempt_status_url': poll_url, 'exam_attempt_status_url': poll_url,
'platform_name': settings.PLATFORM_NAME, 'platform_name': settings.PLATFORM_NAME,
'link_urls': settings.PROCTORING_SETTINGS.get('LINK_URLS', {})
}) })
) )
) )
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<div class="steps-container"> <div class="steps-container">
<div class="body-container"> <div class="body-container">
<h3>{% blocktrans %} Your Proctoring Session Has Started {% endblocktrans %}</h3> <h3>{% blocktrans %} Your Proctoring Session Has Started {% endblocktrans %}</h3>
<p>{% blocktrans %} From this point in time, you must follow the <a href="http://edx.readthedocs.org/projects/edx-guide-for-students/en/latest/sfd_proctoredexams/SFD_OnlineProctoringPolicy.html">online proctoring rules</a> to pass the proctoring review for your exam. {% endblocktrans %}</p> <p>{% blocktrans %} From this point in time, you must follow the <a href="{{link_urls.get('online_proctoring_rules','#')}}">online proctoring rules</a> to pass the proctoring review for your exam. {% endblocktrans %}</p>
<div class="alert"> <div class="alert">
{% blocktrans %} {% blocktrans %}
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
<h4> {% trans "See Also" %} </h4> <h4> {% trans "See Also" %} </h4>
<p> <p>
{% blocktrans %} {% blocktrans %}
<a class="footer-link" href="http://edx.readthedocs.org/projects/edx-guide-for-students/en/latest/sfd_proctoredexams/SFD_ProctoredExams.html"> <a class="footer-link" href="{{link_urls.get('faq','#')}}">
Frequently asked questions about proctoring and earning college credit. Frequently asked questions about proctoring and earning college credit.
</a> </a>
<a class="footer-link" href="http://edx.readthedocs.org/projects/edx-guide-for-students/en/latest/sfd_proctoredexams/SFD_OnlineProctoringPolicy.html"> <a class="footer-link" href="{{link_urls.get('online_proctoring_rules','#')}}">
Online proctoring rules Online proctoring rules
</a> </a>
<a class="footer-link" href="http://clientportal.softwaresecure.com/support/index.php?/Knowledgebase/Article/View/252/0/system-requirements-remote-proctor-now"> <a class="footer-link" href="{{link_urls.get('tech_requirements','#')}}">
Technical Requirements for taking a proctored exam Technical Requirements for taking a proctored exam
</a> </a>
{% endblocktrans %} {% endblocktrans %}
</p> </p>
</div> </div>
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
{% blocktrans %} {% blocktrans %}
Proctoring session results are usually available 24-48 hours after you submit your exam. Proctoring session results are usually available 24-48 hours after you submit your exam.
If you have questions about the status of your session review If you have questions about the status of your session review
after that time, contact <a href="https://www.edx.org/contact-us">{{platform_name}}</a> Support. after that time, contact <a href="{{link_urls.get('contact_us','#')}}">{{platform_name}}</a> Support.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<hr> <hr>
......
...@@ -82,4 +82,10 @@ PROCTORING_BACKEND_PROVIDER = { ...@@ -82,4 +82,10 @@ PROCTORING_BACKEND_PROVIDER = {
PROCTORING_SETTINGS = { PROCTORING_SETTINGS = {
'MUST_BE_VERIFIED_TRACK': True, 'MUST_BE_VERIFIED_TRACK': True,
'MUST_COMPLETE_ICRV': True, 'MUST_COMPLETE_ICRV': True,
'LINK_URLS': {
'online_proctoring_rules': '',
'faq': '',
'contact_us': '',
'tech_requirements': '',
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment