fixes #235
This commit is contained in:
@@ -50,7 +50,7 @@ module ApplicationHelper
|
||||
html << " [" + link_to("+", new_user_feedback_path(:user_record => {:category => "positive"})) + "]"
|
||||
|
||||
unless user.is_privileged?
|
||||
html << " [" + link_to("invite", moderator_invitations_path(:invitation => {:name => user.name, :level => User::Levels::CONTRIBUTOR})) + "]"
|
||||
html << " [" + link_to("invite", new_moderator_invitations_path(:invitation => {:name => user.name, :level => User::Levels::CONTRIBUTOR})) + "]"
|
||||
end
|
||||
else
|
||||
html << " [" + link_to("–", new_user_feedback_path(:user_record => {:category => "negative", :user_id => user.id})) + "]"
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<div id="a-new">
|
||||
<h1>New Invitation</h1>
|
||||
|
||||
<%= form_tag(moderator_invitations_path) do %>
|
||||
<%= form_tag(moderator_invitations_path, :class => "simple_form") do %>
|
||||
<div class="input">
|
||||
<label>User</label>
|
||||
<%= text_field :invitation, :user_name %>
|
||||
<%= text_field :invitation, :user_name, :value => params[:invitation][:name] %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user