diff --git a/src/converse-profile.js b/src/converse-profile.js index cc346920c..26cdd932d 100644 --- a/src/converse-profile.js +++ b/src/converse-profile.js @@ -114,6 +114,7 @@ 'status_message': this.model.get('status_message') || __("I am %1$s", this.getPrettyStatus(chat_status)), 'chat_status': chat_status, + '_converse': _converse, 'title_change_settings': __('Change settings'), 'title_change_status': __('Click to change your chat status'), 'title_log_out': __('Log out'), diff --git a/src/templates/profile_view.html b/src/templates/profile_view.html index e79cdd669..96d8f9a99 100644 --- a/src/templates/profile_view.html +++ b/src/templates/profile_view.html @@ -8,7 +8,9 @@ {{{o.fullname}}} - + {[ if (o._converse.allow_logout) { ]} + + {[ } ]}