Commit 540710f5 by Brian Talbot

studio - nav revamp: added in dynamic course org and number to header

parent c9c026be
...@@ -109,15 +109,17 @@ ...@@ -109,15 +109,17 @@
width: 1px; width: 1px;
} }
.course-number, .course-title { .course-org {
display: block; margin-right: ($baseline/4);
} }
.course-number { .course-number, .course-org {
@include font-size(12); @include font-size(12);
display: inline-block;
} }
.course-title { .course-title {
display: block;
width: 100%; width: 100%;
max-width: 220px; max-width: 220px;
overflow: hidden; overflow: hidden;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="info-course"> <div class="info-course">
<h2 class="sr">Current Course:</h2> <h2 class="sr">Current Course:</h2>
<a href="${reverse('course_index', kwargs=dict(org=ctx_loc.org, course=ctx_loc.course, name=ctx_loc.name))}"> <a href="${reverse('course_index', kwargs=dict(org=ctx_loc.org, course=ctx_loc.course, name=ctx_loc.name))}">
<span class="course-number">PH207x:</span> <span class="course-org">${ctx_loc.org}</span><span class="course-number">${ctx_loc.course}</span>
<span class="course-title" title="${context_course.display_name}">${context_course.display_name}</span> <span class="course-title" title="${context_course.display_name}">${context_course.display_name}</span>
</a> </a>
</div> </div>
......
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