<% current_user_is_group_admin = group.admins.include?(current_user.id.to_s) ? true : false if !current_user_is_group_admin current_user_is_group_member = group.users.include?(current_user) ? true : false else current_user_is_group_member = true end %>
  • ">

    <%= link_to(content_tag(:i, nil, :class => 'icon-edit'),"#",:class=>"edit" ) if current_user_is_group_admin %>
    <%= image_tag(group.image) %>

    <%= link_to group.title, admin_group_path(group) %>

    <% author = "" group.admins.each_with_index do |admin,i| user = User.find(admin) rescue nil if !user.nil? author = author + (user.member_profile.name == nil ? user.user_name : user.member_profile.name rescue "") author = author + ", " if i != group.admins.count - 1 end end %>
    Admin : <%= author %>

    • Privacy : "><%= group.privacy %>
    • <% content = group.description %> <%= content[0..150] %> <%= "..." if content.length > 250 %>