hardlounge/client/views
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
..
actions Fix default value given to Msg.from 2017-11-29 18:37:17 -05:00
windows Move help to view 2017-11-19 19:43:43 +02:00
chan.tpl Add slug with command to unhandled messages 2017-04-16 12:31:32 +03:00
chat.tpl Change history button text while loading 2017-08-09 14:18:37 +03:00
contextmenu_divider.tpl Add a specific item divider for the context menu, allowing some margin 2016-03-20 17:40:12 -04:00
contextmenu_item.tpl Add context menus 2016-03-01 13:56:36 +02:00
date-marker.tpl Always create condensed wrapper 2017-09-02 18:31:47 +03:00
image_viewer.tpl Add Previous/Next cycling buttons to the image viewer 2017-07-23 13:14:27 -04:00
index.js Move help to view 2017-11-19 19:43:43 +02:00
msg_action.tpl Condense Joins 2017-08-13 14:30:30 -04:00
msg_condensed_toggle.tpl Move condense caret to the right, animate transition, add hover state (with transition), reuse thumbnail toggle style 2017-08-13 16:16:38 -04:00
msg_condensed.tpl Implement condensed messages option entirely with CSS 2017-08-30 15:43:31 +03:00
msg_preview_toggle.tpl Fix /expand command also expanding condensed status messages 2017-09-07 19:50:00 -04:00
msg_preview.tpl Store preview images on disk for privacy, security and caching 2017-07-18 11:37:16 +03:00
msg_unhandled.tpl Fix missing attributes on unhandled messages 2017-11-10 16:18:44 +02:00
msg.tpl Fix default value given to Msg.from 2017-11-29 18:37:17 -05:00
network.tpl Add fix for undefined name being slugified 2017-04-21 09:32:57 +01:00
session.tpl Implement session list 2017-09-26 10:56:08 +03:00
unread_marker.tpl Improve styling of the unread marker 2016-07-05 15:32:41 -04:00
user_filtered.tpl Fix user list search not responding to clicks on search results 2017-05-13 18:34:27 -04:00
user_name.tpl Move nickname rendering to a single template 2017-06-22 13:28:17 +03:00
user.tpl Move nickname rendering to a single template 2017-06-22 13:28:17 +03:00