From 2e3d89ef7858c7301545e0e093fd1aefbb599488 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 20 Jul 2014 10:39:17 -1000 Subject: [PATCH] Use mustache template for message rendering --- css/conversation.css | 4 - js-deps/mustache.js | 578 +++++++++++++++++++++++++++++++++++++++++++ js/views/message.js | 24 +- popup.html | 15 ++ 4 files changed, 602 insertions(+), 19 deletions(-) create mode 100644 js-deps/mustache.js diff --git a/css/conversation.css b/css/conversation.css index e479f0ffd..062d73379 100644 --- a/css/conversation.css +++ b/css/conversation.css @@ -99,10 +99,6 @@ color: #cccccc; font-size: 0.70em; padding: 0.2em 0.6em; - visibility: hidden; -} -.bubble:hover .metadata { - visibility: visible; } .bubble { diff --git a/js-deps/mustache.js b/js-deps/mustache.js new file mode 100644 index 000000000..be3d01a25 --- /dev/null +++ b/js-deps/mustache.js @@ -0,0 +1,578 @@ +/*! + * mustache.js - Logic-less {{mustache}} templates with JavaScript + * http://github.com/janl/mustache.js + */ + +/*global define: false*/ + +(function (global, factory) { + if (typeof exports === "object" && exports) { + factory(exports); // CommonJS + } else if (typeof define === "function" && define.amd) { + define(['exports'], factory); // AMD + } else { + factory(global.Mustache = {}); // + @@ -56,6 +70,7 @@ +