This commit is contained in:
r888888888
2015-10-15 15:24:24 -07:00
parent 8a09151c14
commit 6480864718
30 changed files with 70 additions and 93 deletions

View File

@@ -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]

View File

@@ -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("&ndash;".html_safe, new_user_feedback_path(:user_feedback => {:category => "negative", :user_id => user.id})) + "]"

View File

@@ -5,7 +5,7 @@ module Moderator
["", ""],
["Member", 20],
["Gold", 30],
["Contributor", 33],
["Platinum", 31],
["Janitor", 35],
["Moderator", 40],
["Admin", 50]

View File

@@ -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