


	<div class="btn-toolbar pull-right">
	  <div class="btn-group">
		<% if (model.attributes.own) {
			%> <a class="btn btn-info edit-post" title="Edytuj"><i class="icon-edit"></i></a> <%
		}
		else {
		%>
		<!--
		<a class="btn <%= (model.attributes.like) ? 'disabled' : '' %> like-post" title="Polub"><i class="icon-thumbs-up"></i></a>
		<a class="btn <%= (model.attributes.watch) ? 'disabled' : '' %> watch-post"  title="Obserwuj"><i class="icon-eye-open"></i></a>
		-->
		<%
		} %>

	  </div>
	</div>
<!--	<a href="/#people/<%= model.attributes._id %>" > <%= model.attributes.displayName %></a>

	-->
	<div>
	<a href="/#people/<%= model.attributes._id %>" title="<%= model.attributes.displayName %>" >
			<img src="<%= (model.attributes.photoUrl) ? model.attributes.photoUrl : '/img/user.png' %>" class="img-polaroid user-sub-photo" />
	</a>
	</div>
	<div class="">
		<div class="user-name">
			<a href="/#people/<%= model.attributes._id %>" title="<%= model.attributes.displayName %>" > <%= model.attributes.displayName %></a>
			<%= (model.attributes.role=='admin' || model.attributes.admin)? '<span class="label label-important">admin</span>' : '' %>
			<!-- <%= (model.attributes.role=='user')? '<span class="label label-info">user</span>' : '' %>		 -->
			<!-- <%= (!model.attributes.role)? '<span class="label label-info">user</span>' : '' %>					 -->
			<span class="label label-info"><%= model.attributes.role %></span>
			<br/>
			<div>Dołączył: <span><%= (new Date(model.attributes.created)).toLocaleDateString() %></span></div>
			<% if (model.profile.admin) {%>
		</div>
			<div class="btn-group">
			  <a class="btn btn-primary" href="/#people/<%= model.attributes._id %>" title="<%= model.attributes.displayName %>"><i class="icon-user icon-white"></i></a>
			  <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
			  <ul class="dropdown-menu">
				<% if (!model.attributes.approved) {%>
			    <li><a class="approve"><i class="icon-ok-sign"></i> Zatwierdź</a></li>
			    <li class="divider"></li>
				<%}%>

			    <li><a class="delete"><i class="icon-trash"></i> Usuń</a></li>
			    <li><a class="ban"><i class="icon-ban-circle"></i> Ban</a></li>
			    <li class="divider"></li>
				<% if (model.attributes.admin) {%>
				    <li><a  class="demote"><i class="icon-chevron-down"></i> Odbierz uprawnienia administratora</a></li>
				<% }
				else {%>
				    <li><a class="promote"><i class="icon-chevron-up"></i> Uczyń administratorem</a></li>
				<%}%>
			  </ul>
			</div>
			<%}%>

	</div>

