update marketing template blocks, smarter and takes in just a class for header, fixes bug with no picture for mitx_global page

This commit is contained in:
Ernie Park
2012-01-26 13:19:22 -05:00
parent 042e1fdf8c
commit 2ba88b53c7
3 changed files with 5 additions and 8 deletions

View File

@@ -1,10 +1,6 @@
<%inherit file="marketing.html" />
<%block name="header">
<header class="announcement course">
<div class="anouncement-wrapper">
${parent.header_nav()}
<%block name="header_text">
<section class="course">
<section>
<h1>Circuits &amp; Electronics</h1>
@@ -13,9 +9,8 @@
</section>
<p> Taught by Anant Agarwal, with Gerald Sussman, Piotr Mitros, and Chris Terman, &ldquo;6.002x Circuits and Electronics&rdquo; is an experimental on-line adaption of MIT's first undergraduate analog design course 6.002. This course will run, free of charge, for students worldwide from February 21, 2012 through June&nbsp;10,&nbsp;2012.</p>
</section>
</div>
</header>
</%block>
<%block name="header_class">course</%block>
<section class="index-content">
<section class="about-course">

View File

@@ -27,7 +27,7 @@
<body>
<%block name="header">
<header class="announcement">
<header class="announcement <%block name="header_class"/>">
<div class="anouncement-wrapper">
<%block name="header_nav">
<nav>

View File

@@ -1,5 +1,7 @@
<%inherit file="marketing.html" />
<%block name="header_class">home</%block>
<section class="index-content">
<section class="about">
<h1><em>MITx</em> is MIT&rsquo;s online learning initiative.</h1>