2021-01-11 23:13:40 +08:00
|
|
|
<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 %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<% @user_projects.each do |user_project| %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<li>
|
|
|
|
<div class="row">
|
2021-01-11 23:13:40 +08:00
|
|
|
<div class="col-xs-1">
|
2019-05-21 21:19:44 +08:00
|
|
|
<span class='global-avatar-container'>
|
2021-01-11 23:13:40 +08:00
|
|
|
<%= image_tag avatar_path(user_project.user, :icon_small), class: 'img-circle pull-left' %>
|
2019-05-21 21:19:44 +08:00
|
|
|
</span>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2021-01-11 23:13:40 +08:00
|
|
|
<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>
|
2018-02-03 01:48:55 +08:00
|
|
|
</div>
|
2021-01-11 23:13:40 +08:00
|
|
|
<hr>
|
2016-02-12 23:52:43 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-07-21 19:11:15 +08:00
|
|
|
</ul>
|