conditional display of note.desc on note_detail page
authorSeth Woodworth <seth@sethish.com>
Thu, 10 Jan 2013 20:45:01 +0000 (15:45 -0500)
committerSeth Woodworth <seth@sethish.com>
Thu, 10 Jan 2013 20:45:01 +0000 (15:45 -0500)
karmaworld/templates/notes/note_detail.html

index 8c63930bc330091ef3c0240db82d2eb46524651a..46507b3a73c56b75d4d0d0e37ee489f6ab279af8 100644 (file)
       <div class="row">
         <div class="eight columns centered body_copy">
 
-          <h1>description</h1>
+          {% if note.desc %}
+            <h1>description</h1>
 
-          <p>{{ note.desc }}</p>
+            <p>{{ note.desc }}</p>
+          {% endif %}
 
           <h1>notes</h1>