Skip to content

Commit

Permalink
Add network links to user list template
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Oct 22, 2015
1 parent 6adf2cd commit ba19ff2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions www/templates/usersListItem.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<div class="user">
<div class="user layout-horizontal">
<div class="selector no-select">
<span class="selector-inner glyphicon glyphicon-ok"></span>
</div>
<div class="name-container type-<%- type %>">
<div class="name-container type-<%- type %> layout-flex">
<span class="name-icon glyphicon glyphicon-user" <%= type === 'server' ? 'data-toggle="tooltip" title="Server user"' : '' %>></span>
<img class="name-gravatar" src="<%- email ? '//www.gravatar.com/avatar/' + window.md5(email) + '?r=x&s=52&d=404' : ''%>" onload="$(this).show(); $(this).siblings('.name-icon').hide()" onerror="$(this).hide(); $(this).siblings('.name-icon').show()"/>
<a class="user-name title no-select" data-toggle="tooltip" title="Click to rename this user"><%- name %><%- email ? ' (' + email + ')' : '' %></a>
<span class="user-id title">(<%- id %>)</span>
</div>

<div class="user-network-link">
<% for(var i in network_links) { %>
<span class="fa fa-circle-o"></span><span
class="title link"><%- network_links[i] %></span>
<% } %>
</div>
<div class="right-container <%- otp_auth ? '' : 'no-otp-auth' %>">
<div class="status-container">
<div class="status-icon <%- disabled ? 'disabled' : (status ? 'online' : 'offline') %>"></div>
Expand Down

0 comments on commit ba19ff2

Please sign in to comment.