forked from saurabh/orbit4-5
fixed member view bug in member list page for imported members without user account
This commit is contained in:
parent
a73098dc8f
commit
9288d66660
|
@ -1,4 +1,5 @@
|
|||
<% if member_for_listing.present? && (member_for_listing.user.approved rescue false) %>
|
||||
<% if member_for_listing.present? && (!member_for_listing.user.present? || member_for_listing.user.approved) %>
|
||||
|
||||
<%
|
||||
if member_for_listing.sex == 'male'
|
||||
@member_gender = 'gender-man'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% if member_for_summary.present? && (member_for_summary.user.approved rescue false) %>
|
||||
<% if member_for_summary.present? && (!member_for_summary.user.present? || member_for_summary.user.approved) %>
|
||||
<li id="<%= dom_id member_for_summary %>">
|
||||
<div class="member-avatar">
|
||||
<%
|
||||
|
@ -14,7 +14,7 @@
|
|||
<div class="action">
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-edit'),edit_admin_member_path(member_for_summary),:class=>"edit" ) if current_user.is_admin?%>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-key'),admin_member_edit_privilege_path(member_for_summary),:class=>"key" ) if current_user.is_admin? and (current_user.id != member_for_summary.user.id if member_for_summary.user.present?) %>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'),admin_member_path(member_for_summary, at: params[:at]), data: { confirm: t('sure?') }, method: :delete, class: "trash", remote: true) if current_user.is_admin? %>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'),admin_member_path(member_for_summary.id, at: params[:at]), data: { confirm: t('sure?') }, method: :delete, class: "trash", remote: true) if current_user.is_admin? %>
|
||||
</div>
|
||||
<%= image_tag(member_for_summary.avatar) %>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% if member_for_thumbnail.present? && (member_for_thumbnail.user.approved rescue false) %>
|
||||
<% if member_for_thumbnail.present? && (!member_for_thumbnail.user.present? || member_for_thumbnail.user.approved) %>
|
||||
<%
|
||||
if member_for_thumbnail.sex == 'male'
|
||||
@user_sex = 'gender-man'
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-edit'),edit_admin_member_path(member_for_thumbnail),:class=>"edit" ) if current_user.is_admin?%>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-key'),admin_member_edit_privilege_path(member_for_thumbnail),:class=>"key" ) if current_user.is_admin? and (current_user.id != member_for_thumbnail.user.id if member_for_thumbnail.user.present?) %>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'),admin_member_path(member_for_thumbnail, at: params[:at]), data: { confirm: t('sure?') }, method: :delete, class: "trash", remote: true) if current_user.is_admin? %>
|
||||
<%= link_to(content_tag(:i, nil, :class => 'icon-trash'),admin_member_path(member_for_thumbnail.id, at: params[:at]), data: { confirm: t('sure?') }, method: :delete, class: "trash", remote: true) if current_user.is_admin? %>
|
||||
</div>
|
||||
<%= image_tag(member_for_thumbnail.avatar) %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue