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

8 lines
478 B
Plaintext
Raw Permalink Normal View History

2021-07-21 07:37:06 +00:00
<% 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>