added course name to global nav bar

This commit is contained in:
Tom Giannattasio
2012-08-09 11:17:26 -04:00
parent f318cbea27
commit e82582e329
2 changed files with 24 additions and 1 deletions

View File

@@ -185,3 +185,21 @@ h1.top-header {
.tran {
@include transition( all, .2s, $ease-in-out-quad);
}
.global {
h2 {
float: left;
font-size: 0.9em;
font-weight: 600;
line-height: 40px;
letter-spacing: 0;
text-transform: none;
text-shadow: 0 1px 0 #fff;
.provider {
font: inherit;
font-weight: bold;
color: #6d6d6d;
}
}
}

View File

@@ -7,11 +7,16 @@
<header class="global" aria-label="Global Navigation">
<nav>
<h1 class="logo"><a href="${reverse('root')}"></a></h1>
<ol class="left">
%if course:
<h2><span class="provider">${course.org}:</span> ${course.number} ${course.title}</h2>
%else:
<ol class="left">
<li class="primary">
<a href="${reverse('courses')}">Find Courses</a>
</li>
</ol>
%endif
%if user.is_authenticated():
<ol class="user">