Commit f32388f2 by Tom Giannattasio

markup tweaks to fix content crunching

parent 0b7bff4c
...@@ -10,22 +10,22 @@ ...@@ -10,22 +10,22 @@
<script type="text/javascript" src="${static.url('js/views/course_info_edit.js')}"></script> <script type="text/javascript" src="${static.url('js/views/course_info_edit.js')}"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(document).ready(function(){ $(document).ready(function(){
var course_updates = new CMS.Models.CourseUpdateCollection(); var course_updates = new CMS.Models.CourseUpdateCollection();
course_updates.reset(${course_updates|n}); course_updates.reset(${course_updates|n});
course_updates.urlbase = '${url_base}'; course_updates.urlbase = '${url_base}';
var editor = new CMS.Views.CourseInfoEdit({ var editor = new CMS.Views.CourseInfoEdit({
el: $('.main-wrapper'), el: $('.main-wrapper'),
model : new CMS.Models.CourseInfo({ model : new CMS.Models.CourseInfo({
courseId : '${context_course.location}', courseId : '${context_course.location}',
updates : course_updates, updates : course_updates,
// FIXME add handouts // FIXME add handouts
handouts : null}) handouts : null})
}); });
editor.render(); editor.render();
}); });
</script> </script>
</%block> </%block>
...@@ -33,16 +33,13 @@ ...@@ -33,16 +33,13 @@
<div class="main-wrapper"> <div class="main-wrapper">
<div class="inner-wrapper"> <div class="inner-wrapper">
<h1>Course Info</h1> <h1>Course Info</h1>
<div class="main-column"> <article class="unit-body window" id="course-update-view">
<div class="unit-body window" id="course-update-view"> <h2>Updates</h2>
<h2>Updates</h2> <a href="#" class="new-update-button">New Update</a>
<a href="#" class="new-update-button">New Update</a> <ol class="update-list" id="course-update-list"></ol>
<ol class="update-list" id="course-update-list"></ol> <!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field -->
<!-- probably replace w/ a vertical where each element of the vertical is a separate update w/ a date and html field --> </article>
</div> </div>
</div> </div>
<div class="sidebar window">
</div>
</div>
</div> </div>
</%block> </%block>
\ No newline at end of file
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