ruling_timer/app/views/admin/ruling_timers/_user_card.html.erb

8 lines
478 B
Plaintext

<% checked = false if defined?(checked).nil? %>
<li class="check-item <%=checked ? 'active' : ''%>">
<label>
<%= image_tag ((user.member_profile.avatar.file rescue false) ? user.member_profile.avatar : "member-pic.png"), class: "user-pic" %>
<span class="user-name"><%= user.member_profile.name rescue 'noname' %></span>
</label>
<%= check_box_tag "#{@user_params_name}", (user.id rescue nil) , (checked ? true : false) , :id => "user_ids_#{(user.id rescue '')}"%>
</li>