Browse Source

improve @title on roster item (#1013)

linkmauve 7 years ago
parent
commit
af6867e638
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/converse-rosterview.js
  2. 1 1
      src/templates/roster_item.html

+ 1 - 2
src/converse-rosterview.js

@@ -358,9 +358,8 @@
                     this.el.innerHTML = tpl_roster_item(
                         _.extend(item.toJSON(), {
                             'desc_status': STATUSES[item.get('chat_status')||'offline'],
-                            'desc_chat': __('Click to chat with this contact'),
+                            'desc_chat': __('Click to chat with %1$s (JID: %2$s)', item.get('fullname'), item.get('jid')),
                             'desc_remove': __('Click to remove %1$s as a contact', item.get('fullname')),
-                            'title_fullname': __('Name'),
                             'allow_contact_removal': _converse.allow_contact_removal,
                             'num_unread': item.get('num_unread') || 0
                         })

+ 1 - 1
src/templates/roster_item.html

@@ -1,5 +1,5 @@
 <a class="open-chat {[ if (o.num_unread) { ]} unread-msgs {[ } ]}"
-   title="{{{o.title_fullname}}}: {{{o.fullname}}} JID: {{{o.jid}}} {{{o.desc_chat}}}"
+   title="{{{o.desc_chat}}}"
    href="#">
     <div class="avatar avatar-{{{o.chat_status}}}">
         <span class="status-icon icon-{{{o.chat_status}}}" title="{{{o.desc_status}}}"></span>