Browse Source

Make user JID a link in user details.

Emmanuel Gil Peyrot 6 years ago
parent
commit
8c5df984f4
2 changed files with 5 additions and 3 deletions
  1. 4 2
      dist/converse.js
  2. 1 1
      src/templates/user_details_modal.html

+ 4 - 2
dist/converse.js

@@ -103634,9 +103634,11 @@ __e(o.fullname) +
  } ;
 __p += '\n                <p><label>' +
 __e(o.__('XMPP Address:')) +
-'</label>&nbsp;' +
+'</label>&nbsp;<a href="xmpp:' +
 __e(o.jid) +
-'</p>\n                ';
+'">' +
+__e(o.jid) +
+'</a></p>\n                ';
  if (o.nickname) { ;
 __p += '\n                <p><label>' +
 __e(o.__('Nickname:')) +

+ 1 - 1
src/templates/user_details_modal.html

@@ -14,7 +14,7 @@
                 {[ if (o.fullname) { ]}
                 <p><label>{{{o.__('Full Name:')}}}</label>&nbsp;{{{o.fullname}}}</p>
                 {[ } ]}
-                <p><label>{{{o.__('XMPP Address:')}}}</label>&nbsp;{{{o.jid}}}</p>
+                <p><label>{{{o.__('XMPP Address:')}}}</label>&nbsp;<a href="xmpp:{{{o.jid}}}">{{{o.jid}}}</a></p>
                 {[ if (o.nickname) { ]}
                 <p><label>{{{o.__('Nickname:')}}}</label>&nbsp;{{{o.nickname}}}</p>
                 {[ } ]}