Sha256: 10e1b8ba9aa8feb00bf94c2ab7e53f3267891c4a47ee86c703f614e5ae5188f0

Contents?: true

Size: 511 Bytes

Versions: 8

Compression:

Stored size: 511 Bytes

Contents

<% if !user.moderator_of?(forum)  %>
  <%= link_to_remote(:make_moderator.l, 
      {:url => forum_moderators_path(:forum_id => forum.id, :user_id => user.id), 
       :method => :post}, 
      {:class => "utility"}
      ) %>      
<% else %>
  <% moderatorship = Moderatorship.find_by_user_id_and_forum_id(user.id, forum.id) %>
  <%= link_to_remote(:remove_moderator.l, 
    {:url => forum_moderator_path(forum, moderatorship.id), 
     :method => :delete}, 
    {:class => "utility"}
    ) %>      
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/moderators/_toggle.html.erb
community_engine-2.3.1 app/views/moderators/_toggle.html.erb
community_engine-2.3.0 app/views/moderators/_toggle.html.erb
community_engine-2.1.0 app/views/moderators/_toggle.html.erb
community_engine-2.0.0 app/views/moderators/_toggle.html.erb
community_engine-2.0.0.beta3 app/views/moderators/_toggle.html.erb
community_engine-2.0.0.beta2 app/views/moderators/_toggle.html.erb
community_engine-2.0.0.beta1 app/views/moderators/_toggle.html.erb