hardlounge/client/views/actions
Jérémie Astori c0d348a678
Fix default value given to Msg.from
- `{}` is not falsey so Handlebars would try to render the block (see http://handlebarsjs.com/builtin_helpers.html#conditionals), therefore with a `nick` of `undefined`, which breaks `colorClass` (doing `undefined.length)
- There does not seem to be a way to check for empty objects in Handlebars (sigh) so checking `from.nick` seems like the most reliable way to check for a non-empty value. Alternatively, we could use a helper to check `{}` but meh.
2017-11-29 18:37:17 -05:00
..
action.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
away.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
back.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
ban_list.tpl Add support for banlist messages 2017-04-22 13:51:28 +01:00
channel_list.tpl Implement /list 2016-07-22 21:42:42 -04:00
ctcp.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
invite.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
join.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
kick.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
mode.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
nick.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
part.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
quit.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
topic_set_by.tpl Refactor how user object is sent to the client 2017-11-19 02:46:45 -05:00
topic.tpl Fix default value given to Msg.from 2017-11-29 18:37:17 -05:00
whois.tpl Fix whois template parsing real name field 2017-11-25 12:23:03 -08:00