my eye

Add color to RSVPs

Committed 0db206

--- a/webint_posts/templates/entry.html
+++ b/webint_posts/templates/entry.html

     $ in_reply_to = entry["in-reply-to"][0]
     $# var title: RSVP'd $entry["rsvp"] to $event["name"]
     $var show_title = False
-    <p>RSVP <strong class=p-rsvp>$entry["rsvp"][0]</strong> to
+    $ colors = {
+    $   "yes": "2aa198",
+    $   "maybe": "6c71c4",
+    $   "no": "cb4b16",
+    $ }
+    <p>RSVP <strong class=p-rsvp
+        style="color:$colors[entry['rsvp'][0]]);">$entry["rsvp"][0]</strong> to
     <a class=u-in-reply-to href=$in_reply_to>$in_reply_to</a></p>
     <div id=previewContent>$render_content(entry)</div>
 $else: