moving to jquery tmpl for courses page
authorSeth Woodworth <seth@sethish.com>
Sat, 28 Jan 2012 17:21:11 +0000 (12:21 -0500)
committerSeth Woodworth <seth@sethish.com>
Sat, 28 Jan 2012 17:21:11 +0000 (12:21 -0500)
public/index.html
public/javascripts/main.js

index 2212c26df180069d9d06e2ecd29ce32a1000b8f6..9944bd83ca49ff8c8e7332743b76f1b25b41a3dc 100644 (file)
                         <h1><span id=school_name></span> Courses</h1>
                     </header>
 
-                    <div class="main-content">
-                        <div id="courselist">
-                        </div>
-
+                    <div id="main-content">
                         <span class="sub_menu" style="display:none;"></span>
 
                         <script id="courseTmpl" type="text/x-jquery-tmpl">
                         <div class="course">
-                            <a class="course-name" href="/course/${_id}">
-                                ${number}: ${name}
-                            </a>
-                            <p class="course-description">
-                                ${description}
-                            </p>
-                            <div class="dept">${department}</div>
+                            <div class="course-content">
+                                <a class="course-name" href="/course/${_id}">
+                                    ${number}: ${name}
+                                </a>
+                                <p class="course-description">
+                                    This is placeholder description text, an intro to description in the nature of things that is quite and very and yes!
+                                </p>
+                                <div class="dept">${department}</div>
+                            </div>
                             <aside class="course-data">
                                 <div class="course-data-item">
-                                    <div class="course-data-number">${lectures}</div>
+                                    <div class="course-data-number">100${lectures}</div>
                                     <div class="course-data-description">lectures</div>
                                 </div>
                             </aside>
index b1a7a93fde3630d7aa7893ea59468fa40500b395..37290ffef0489868413a1dc76b0c58d99f3205fa 100644 (file)
@@ -207,7 +207,7 @@ router.add('school', function(data, cb) {
     })
   }
 
-  $('#courseTmpl').tmpl( data.school.courses ).appendTo("#pg_courses #courselist");
+  $('#courseTmpl').tmpl( data.school.courses ).appendTo("#pg_courses #main-content");
 });
 
 // go to the page that lists the lectures for a specific course