diff --git a/client/css/style.css b/client/css/style.css index 9aead5b6..dee0ab4a 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -914,6 +914,10 @@ button { color: #f00; } +#chat .unhandled .from { + color: #eee; +} + #chat .msg.toggle .time { visibility: hidden; } diff --git a/client/js/lounge.js b/client/js/lounge.js index 47a990a7..6c1e0f1d 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -222,7 +222,7 @@ $(function() { } var chan = chat.find(target); - var msg; + var template = "msg"; if (!data.msg.highlight && !data.msg.self && (type === "message" || type === "notice") && highlights.some(function(h) { return data.msg.text.indexOf(h) > -1; @@ -245,11 +245,13 @@ $(function() { "ctcp", ].indexOf(type) !== -1) { data.msg.template = "actions/" + type; - msg = $(render("msg_action", data.msg)); - } else { - msg = $(render("msg", data.msg)); + template = "msg_action"; + } else if (type === "unhandled") { + template = "msg_unhandled"; } + var msg = $(render(template, data.msg)); + var text = msg.find(".text"); if (text.find("i").size() === 1) { text = text.find("i"); diff --git a/client/themes/morning.css b/client/themes/morning.css index 46267804..bdd5755a 100644 --- a/client/themes/morning.css +++ b/client/themes/morning.css @@ -195,6 +195,10 @@ body { color: #f92772; } +#chat .unhandled .from { + color: #99a2b4; +} + #chat .msg.quit .time, #chat .msg.quit .from button { color: #d0907d !important; diff --git a/client/themes/zenburn.css b/client/themes/zenburn.css index 20a9f17d..abf94d9b 100644 --- a/client/themes/zenburn.css +++ b/client/themes/zenburn.css @@ -222,6 +222,10 @@ body { color: #bc6c4c; } +#chat .unhandled .from { + color: #aaa; +} + #chat .msg.quit .time, #chat .msg.quit .from button { color: #bc6c9c !important; diff --git a/client/views/msg_unhandled.tpl b/client/views/msg_unhandled.tpl new file mode 100644 index 00000000..25b568f9 --- /dev/null +++ b/client/views/msg_unhandled.tpl @@ -0,0 +1,11 @@ +