_profile_details.rhtml
874 Bytes
<div id='profile-details'>
<%= image_tag(profile_icon(@profile, :portrait)) %>
<strong><%= @profile.short_name %></strong><br/>
<%= _('Type: %s') % getterm(@profile.class.name) %> <br/>
<%= _('Description: %s') % @profile.description %> <br/>
<%= _('Members: %s') % @profile.members.size.to_s %> <br/>
<%= _('Created at: %s') % show_date(@profile.created_at) %> <br/>
<% form_tag(@profile.join_url) do %>
<%= hidden_field_tag(:confirmation, 1) %>
<%= hidden_field_tag(:wizard, true) %>
<% if @profile.members.include?(user) %>
<%= link_to( _('Leave'), @profile.leave_url.merge(:confirmation => 1, :wizard => true ), :method => 'post') %>
<% else %>
<%= submit_button(:ok, _("Join now")) %>
<% end %>
<%= button(:back, _('Back'), {:controller => 'search', :action => 'assets', :asset => 'communities', :wizard => true}) %>
<% end %>
</div>