fixes #2469
This commit is contained in:
@@ -5,7 +5,6 @@ module Admin::UsersHelper
|
||||
["Gold", User::Levels::GOLD],
|
||||
["Platinum", User::Levels::PLATINUM],
|
||||
["Builder", User::Levels::BUILDER],
|
||||
["Contributor", User::Levels::CONTRIBUTOR],
|
||||
["Janitor", User::Levels::JANITOR],
|
||||
["Moderator", User::Levels::MODERATOR],
|
||||
["Admin", User::Levels::ADMIN]
|
||||
|
||||
@@ -96,7 +96,7 @@ module ApplicationHelper
|
||||
html << " [" + link_to("+", new_user_feedback_path(:user_feedback => {:category => "positive", :user_id => user.id})) + "]"
|
||||
|
||||
unless user.is_gold?
|
||||
html << " [" + link_to("invite", new_moderator_invitation_path(:invitation => {:name => user.name, :level => User::Levels::CONTRIBUTOR})) + "]"
|
||||
html << " [" + link_to("invite", new_moderator_invitation_path(:invitation => {:name => user.name}, :flag => "can_upload_free")) + "]"
|
||||
end
|
||||
else
|
||||
html << " [" + link_to("–".html_safe, new_user_feedback_path(:user_feedback => {:category => "negative", :user_id => user.id})) + "]"
|
||||
|
||||
@@ -5,7 +5,7 @@ module Moderator
|
||||
["", ""],
|
||||
["Member", 20],
|
||||
["Gold", 30],
|
||||
["Contributor", 33],
|
||||
["Platinum", 31],
|
||||
["Janitor", 35],
|
||||
["Moderator", 40],
|
||||
["Admin", 50]
|
||||
|
||||
@@ -3,7 +3,7 @@ module Moderator
|
||||
def level_select
|
||||
choices = []
|
||||
choices << ["Gold", User::Levels::GOLD]
|
||||
choices << ["Contributor", User::Levels::CONTRIBUTOR]
|
||||
choices << ["Platinum", User::Levels::PLATINUM]
|
||||
select(:invitation, :level, choices)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user