ref: master
plugins/community_block/views/blocks/community.html.erb
<%= link_to profile_image(profile, :big), profile.url %><% links = [] if logged_in? if profile.enable_contact? links.push(c_('Send an e-mail') => {:href => url_for({:controller => 'contact', :action => 'new', :profile => profile.identifier})}) end links.push(c_('Report abuse') => {:href => url_for({:controller => 'profile', :action => 'report_abuse', :profile => profile.identifier})}) if !user.nil? && user.has_permission?('edit_profile', profile) links.push(c_('Control panel') => {:href => url_for({:controller => 'profile_editor', :profile => profile.identifier})}) end %> <%= link_to( content_tag('span','',:class => 'community-block-button icon-arrow'), '#', :onclick => "toggleSubmenu(this,'',#{CGI::escapeHTML(links.to_json)}); return false;".html_safe, :class => 'simplemenu-trigger') %> <% end %> <% if logged_in? %> <% if profile.members.include?(user) || profile.already_request_membership?(user) %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-remove'), profile.leave_url, :class => 'join-community') %> <% else %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-add'), profile.join_url, :class => 'join-community') %> <% end %> <% else %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-add'), profile.join_not_logged_url) %> <% end %><%=profile.name%>
<%= profile.description %>