Render leave-group messages correctly

This commit is contained in:
lilia 2015-02-16 12:47:36 -08:00
parent 367421d40a
commit 85bec04010
2 changed files with 24 additions and 13 deletions

View file

@ -23,6 +23,11 @@
className: "group-update",
render: function() {
//TODO l10n
if (this.model.left) {
this.$el.text(this.model.left + ' left the group');
return this;
}
var messages = ['Updated the group.'];
if (this.model.name) {
messages.push("Title is now '" + this.model.name + "'.");