small fix to show custom fields on userinfo

pull/9821/head
Guilherme Gazzo 8 years ago
parent 23c7eaf119
commit 337e9fd672
No known key found for this signature in database
GPG Key ID: 1F85C9AD922D0829
  1. 8
      packages/rocketchat-ui-flextab/client/tabs/userInfo.html
  2. 2
      packages/rocketchat-ui-flextab/client/tabs/userInfo.js

@ -84,10 +84,16 @@
{{/if}}
{{#if utc}}
<div class="rc-user-info-details__item">
<label class="rc-user-info-details__label ">Timezone</label>
<label class="rc-user-info-details__label">Timezone</label>
<p class="rc-user-info-details__info">{{userTime}} (UTC {{utc}})</p>
</div>
{{/if}}
{{#each customField}}
<div class="rc-user-info-details__item">
<label class="rc-user-info-details__label">{{label}}</label>
<p class="rc-user-info-details__info">{{value}}</p>
</div>
{{/each}}
<div class="rc-user-info-details__item">
{{#if services.facebook.id}} <p class="secondary-font-color"><i class="icon-facebook"></i><a href="{{services.facebook.link}}" target="_blank">{{services.facebook.name}}</a></p> {{/if}}
{{#if services.github.id}} <p class="secondary-font-color"><i class="icon-github-circled"></i><a href="https://www.github.com/{{services.github.username}}" target="_blank">{{services.github.username}}</a></p> {{/if}}

@ -38,7 +38,7 @@ Template.userInfo.helpers({
_.map(el, (key, label) => {
const value = RocketChat.templateVarHandler(key, userCustomFields);
if (value) {
content = `${ label }: ${ value }`;
content = {label, value};
}
});
} else {

Loading…
Cancel
Save