Commit 58618d8c by Matt Drayer Committed by Marco Morales

Updated dashboard HTML, dropdown menu interactions, and tests

parent dfcb3f2b
...@@ -86,6 +86,7 @@ class TestStudentDashboardEmailView(ModuleStoreTestCase): ...@@ -86,6 +86,7 @@ class TestStudentDashboardEmailView(ModuleStoreTestCase):
# Assert that the URL for the email view is not in the response # Assert that the URL for the email view is not in the response
# if this course isn't authorized # if this course isn't authorized
response = self.client.get(self.url) response = self.client.get(self.url)
print response.content
self.assertTrue(self.email_modal_link in response.content) self.assertTrue(self.email_modal_link in response.content)
......
...@@ -168,7 +168,6 @@ ...@@ -168,7 +168,6 @@
<span class="provider">${state.provider.NAME}</span> <span class="provider">${state.provider.NAME}</span>
<span class="control"> <span class="control">
% if state.has_account: % if state.has_account:
<form <form
action="${pipeline.get_disconnect_url(state.provider.NAME)}" action="${pipeline.get_disconnect_url(state.provider.NAME)}"
...@@ -180,17 +179,18 @@ ...@@ -180,17 +179,18 @@
## Translators: clicking on this removes the link between a user's edX account and their account with an external authentication provider (like Google or LinkedIn). ## Translators: clicking on this removes the link between a user's edX account and their account with an external authentication provider (like Google or LinkedIn).
${_("Unlink")} ${_("Unlink")}
</a> </a>
</form>
% else: % else:
<a href="${pipeline.get_login_url(state.provider.NAME, pipeline.AUTH_ENTRY_DASHBOARD, redirect_url='/')}"> <a href="${pipeline.get_login_url(state.provider.NAME, pipeline.AUTH_ENTRY_DASHBOARD, redirect_url='/')}">
## Translators: clicking on this creates a link between a user's edX account and their account with an external authentication provider (like Google or LinkedIn). ## Translators: clicking on this creates a link between a user's edX account and their account with an external authentication provider (like Google or LinkedIn).
${_("Link")} ${_("Link")}
</a> </a>
% endif % endif
</form>
</span> </span>
</div> </div>
% endfor % endfor
</span>
</span> </span>
</li> </li>
% endif % endif
......
...@@ -41,11 +41,9 @@ from student.helpers import ( ...@@ -41,11 +41,9 @@ from student.helpers import (
<% mode_class = '' %> <% mode_class = '' %>
% endif % endif
<article class="course${mode_class}"> <article class="course${mode_class}">
<% <% course_target = reverse('info', args=[course.id.to_deprecated_string()]) %>
course_target = reverse('info', args=[course.id.to_deprecated_string()])
%>
% if show_courseware_link: % if show_courseware_link:
% if not is_course_blocked: % if not is_course_blocked:
<a href="${course_target}" class="cover"> <a href="${course_target}" class="cover">
...@@ -86,6 +84,7 @@ from student.helpers import ( ...@@ -86,6 +84,7 @@ from student.helpers import (
% endif % endif
</p> </p>
</hgroup> </hgroup>
</section>
<section class="details"> <section class="details">
% if show_courseware_link: % if show_courseware_link:
% if not is_course_blocked: % if not is_course_blocked:
...@@ -252,10 +251,6 @@ from student.helpers import ( ...@@ -252,10 +251,6 @@ from student.helpers import (
</div> </div>
% endif % endif
</div> </div>
</section> </section>
<aside class="wrapper-messages-primary"> <aside class="wrapper-messages-primary">
<ul class="messages-list"> <ul class="messages-list">
...@@ -364,10 +359,9 @@ from student.helpers import ( ...@@ -364,10 +359,9 @@ from student.helpers import (
% endif % endif
</ul> </ul>
</aside> </aside>
</article> </article>
</li> </li>
<script> <script>
$( document ).ready(function() { $( document ).ready(function() {
if("${is_course_blocked}" == "True"){ if("${is_course_blocked}" == "True"){
...@@ -376,4 +370,4 @@ from student.helpers import ( ...@@ -376,4 +370,4 @@ from student.helpers import (
}); });
} }
}); });
</script> </script>
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