Found the correct JavaScript incantation to display a FontAwesome character in place...
[citadel.git] / webcit-ng / static / js / views.js
index 549ff1d47b8c393cc340b2e4b4ebe67578caac46..605cb72928bc3e327e619a8deb8a14e97d213b20 100644 (file)
@@ -190,10 +190,8 @@ function forum_render_one(div, msgnum, scroll_to)
                                document.getElementById(div).innerHTML =
                                  "<div class=\"ctdl-msg-wrapper\">"                            // begin message wrapper
                                + "<div class=\"ctdl-avatar\">"                                 // begin avatar
-
-                               + "<img src=\"/ctdl/u/" + msg.from + "/userpic\" width=\"32\" onerror=\"this.parentNode.innerHTML='FIXME'\">"
-
-                               //+ "<i class=\"fa fa-user-circle fa-2x\"></i> "                        // FIXME temporary avatar
+                               + "<img src=\"/ctdl/u/" + msg.from + "/userpic\" width=\"32\" "
+                               + "onerror=\"this.parentNode.innerHTML='&lt;i class=&quot;fa fa-user-circle fa-2x&quot;&gt;&lt;/i&gt; '\">"
                                + "</div>"                                                      // end avatar
                                + "<div class=\"ctdl-msg-content\">"                            // begin content
                                + "<div class=\"ctdl-msg-header\">"                             // begin header