]> projects.mako.cc - iron-blogger/commitdiff
Handle untitled posts better in the weekly blog post.
authorNelson Elhage <nelhage@mit.edu>
Tue, 26 Jan 2010 15:57:32 +0000 (10:57 -0500)
committerNelson Elhage <nelhage@mit.edu>
Tue, 26 Jan 2010 15:57:32 +0000 (10:57 -0500)
templates/week.tmpl

index 7de8f654a763e041177a0f6dd55de4e5a4f8fdd4..e2631c4a303e9901208d318a2974ce1b68c4011b 100644 (file)
@@ -4,7 +4,7 @@
 <li><b>${u.username}:</b>
   <ul>
  % for p in u.weeks[week]:
 <li><b>${u.username}:</b>
   <ul>
  % for p in u.weeks[week]:
-   <li><a href="${p['url']}">${p['title']}</a></li>
+   <li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
  % endfor
   </ul>
 </li>
  % endfor
   </ul>
 </li>

Benjamin Mako Hill || Want to submit a patch?