scinote-web/app/views/user_projects/_index.html.erb

29 lines
944 B
Text
Raw Normal View History

<ul class="no-style project-users-list">
<% if @user_projects.blank? %>
<li>
<em><%= t('projects.index.modal_view_users.no_users') %></em>
</li>
2016-02-12 23:52:43 +08:00
<% else %>
<% @user_projects.each do |user_project| %>
2016-02-12 23:52:43 +08:00
<li>
<div class="row">
<div class="col-xs-1">
<span class='global-avatar-container'>
<%= image_tag avatar_path(user_project.user, :icon_small), class: 'img-circle pull-left' %>
</span>
2016-02-12 23:52:43 +08:00
</div>
<div class="col-xs-11">
<span><%= user_project.user.full_name %></span>
<% if user_project.user == current_user %>
<%= t('projects.index.modal_view_users.current_user_label') %>
<% end %>
<br>
<small class="text-muted"><%= t('user_projects.enums.role.'<< user_project.role) %></small>
2016-02-12 23:52:43 +08:00
</div>
</div>
<hr>
2016-02-12 23:52:43 +08:00
</li>
<% end %>
<% end %>
2016-07-21 19:11:15 +08:00
</ul>