join_community_popup.rhtml 874 Bytes
<div id='join-community-popup'>
  <h3> <%= __('Do you want to join this community?') %> </h3>

  <% button_bar do %>
    <% if logged_in? %>
      <%= button(:ok, _('Yes'), { :controller => 'profile', :action => 'join', :profile => profile.identifier, :confirmation => '1'}, :method => :post) %>
    <% else %>
      <%= button(:ok, _('Yes'), :controller => 'profile', :action => 'join', :profile => profile.identifier) %>
    <% end %>
    <%= button_to_remote(:cancel, _('Not now'), :url => profile.url.merge({:controller => 'profile', :action => 'refuse_for_now', :profile => profile.identifier}), :loaded => '$("join-community-popup").hide()') %>
    <%= button(:cancel, _('No and don\'t ask again'), :controller => 'profile', :action => 'refuse_join', :profile => profile.identifier) if logged_in? %>
  <% end %>
</div>
<%= draggable_element('join-community-popup') %>