course_detail a little more clean
authorSeth Woodworth <seth@sethish.com>
Mon, 18 Mar 2013 16:48:06 +0000 (12:48 -0400)
committerSeth Woodworth <seth@sethish.com>
Mon, 18 Mar 2013 16:48:06 +0000 (12:48 -0400)
karmaworld/assets/css/global.css
karmaworld/templates/courses/course_detail.html

index 967208c6d7384d70b6a10f9a58d032b5557faa18..3f64bcdce397ae8ca151c39b42ee6d87b2122cd4 100644 (file)
@@ -404,14 +404,10 @@ a.activity_target, a.activity_target:hover
 {
   padding: 20px 25px;
   margin: 15px 0 13px;
-  background-color: #c8cdb8;
 }
 
 .activity_details_callout_copy
 {
-  font-family: "MuseoSans-900";
-  font-size: 12px;
-  color: #3a3a3a;
   line-height: 125%;
 }
 
index e8057844b7ed63a7d480275792baf9f1c4298f68..ef96dea03ea223bd76fd6cfc6c734d719b6d6f69 100644 (file)
@@ -35,7 +35,7 @@
     <div id="course_header">
       <div class="row">
         <div id="breadcrumbs" class="ten columns offset-by-one">
-          <a href="/">Home</a> > <a href="{{ course.get_absolute_url }}">{{ course.name }}</a>
+          <a href="/">Home</a> &gt; <a href="{{ course.get_absolute_url }}">{{ course.name }}</a>
         </div><!-- /course_subhead -->
       </div>
 
@@ -56,6 +56,7 @@
       <div class="row">
         <div class="ten columns offset-by-one"> <hr/> </div>
       </div>
+
       <div class="row">
         <div class="three columns centered">
           <div id="upload_button_container" class="button_bevel" >
           </div>
         </div>
       </div>
+
       <div class="row">
-        <div class="ten columns offset-by-one doubleline">
-          <hr/>
-          <hr/>
-        </div>
+        <div class="ten columns offset-by-one"> <hr/> </div>
       </div>
 
 
     </div> <!-- .row -->
     {% endif %}
 
-    <div class="row">
-      <div class="ten columns offset-by-one">
-        <div class="column_header" style="margin: 17px 0 -25px 0">
-          Latest uploaded notes
-        </div><!-- /column_header -->
-      </div>
-    </div> <!-- .row -->
-
-
     <div id="course_container">
       <div class="row">
         <div class="ten columns offset-by-one">
           {% for note in course.note_set.all %}
 
           <div class="row notes_result_container wide">
-            <div class="twelve columns notes_result {% if forloop.counter|divisibleby:"2" %}row_alt_on{% endif %}">
-              <div class="activity_timestamp">
-                {{ note.uploaded_at|date:"gA" }} // {{ note.uploaded_at|date:"D M d o" }}
-              </div>
+            <div class="twelve columns notes_result">
 
               <div class="activity_details_action">
                 <a href="{{ note.get_absolute_url }}" class="activity_target">{{ note.name }}</a>
-                {% comment %}
-                <!-- file name and info with uploader info -->
-                <a href="#" class="activity_actor">{{ note.owner.get_profile.get_name }}</a> added <a href="{{ note.get_absolute_url }}" class="activity_target">{{ file.name }}</a>
-                {% endcomment %}
               </div>
 
+              <div class="activity_timestamp"> <!-- TODO: use the <time> tag -->
+                {{ note.uploaded_at|date:"gA" }} // {{ note.uploaded_at|date:"D M d o" }}
+              </div>
+
+
+              {% if note.tags.count > 0 %}
               <div class="activity_details_context">
-                <a href="{{ course.get_absolute_url }}" class="course_link">{{ course.name }}</a>//<a href="{{ course.school.get_absolute_url }}" class="school_link">{{ course.school.name }}</a>
+                Tags:
+                  {% for tag in note.tags.all %}
+                    {{ tag.name }}
+                  {% endfor %}
               </div>
+              {% endif %}
+
+
               <div class="activity_details_callout">
                 <div class="row">
                   <div class="one column">
                   </div>
                 </div>
               </div>
-              {% comment %}
-              <!-- # users have liked, # users have viewed -->
-              <div class="row">
-                <div class="twelve columns activity_details_status">
-                  So far, <span class="activity_details_status_number">{{ note.numUpVotes }}</span> people have completely fallen in love with with these notes. <span class="activity_details_status_secondary_number">{{ note.viewCount }}</span> people have viewed them.
-                </div><!-- /activity_details_status -->
-              </div>
-              {% endcomment %}
+
+
             </div><!-- /notes_result -->
           </div><!-- /notes_result_container -->
           {% endfor %}