Merge branch 'hotfix/21.56.9' into master
[gitter.git] / public / js / views / people / tmpl / userPopoverView.hbs
blob1582536f46c3a13f752e602117d3084915b4eb07
1 {{#if inactive}}
2   <div class='inactive'>
3     <p><small>{{username}} is not active on Gitter.</small></p>
4   </div>
5 {{/if}}
6 <div style="float: left"><img {{{ avatarSrcSet avatarUrl 128 }}} class="avatar-l"/></div>
7 <div class="trpPopoverDetails">
8   <h2>{{displayName}}</h2>
10   {{#if profile}}
11     <h3><a href="{{profile}}" target="_blank" rel="nofollow noopener noreferrer">{{username}}</a></h3>
12   {{else}}
13     <h3>{{username}}</h3>
14   {{/if}}
16   {{#if github}}
17     <div class="vcard-stats">
18         <strong class="vcard-stat-count">{{github.followers}}</strong>
19         followers &nbsp;
20         <strong class="vcard-stat-count">{{github.public_repos}}</strong>
21         repos &nbsp;
22         <strong class="vcard-stat-count">{{github.following}}</strong>
23         following &nbsp;
24     </div>
25   {{/if}}
27   <ul class="trpUserDetails">
28     {{#if company}}
29       <li>
30         <div class='trpUserDetails__icon'>
31           <i class='octicon octicon-organization'></i>
32         </div>
33         <div class="trpUserDetails__text">{{ company }}</div>
34       </li>
35     {{/if}}
37     {{#if location}}
38       <li>
39         <div class='trpUserDetails__icon'>
40           <i class='octicon octicon-location'></i>
41         </div>
42         <div class="trpUserDetails__text">{{ location }}</div>
43       </li>
44     {{/if}}
46     {{#if email}}
47       <li>
48         <div class='trpUserDetails__icon'>
49           <i class='octicon octicon-mail'></i>
50         </div>
51         <div class="trpUserDetails__text"><a class="email" href="mailto:{{email}}">{{ email }}</a></div>
52       </li>
53     {{/if}}
55     {{#if website}}
56       <li>
57         <div class='trpUserDetails__icon'>
58           <i class='octicon octicon-link'></i>
59         </div>
60         <div class="trpUserDetails__text"><a target="_blank" href="{{website}}" class="url" rel="nofollow noreferrer noopener me">{{ website }}</a></div>
61       </li>
62     {{/if}}
63   </ul>
64 </div>