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