rename references of privileged to gold
This commit is contained in:
@@ -2,7 +2,7 @@ module Admin::UsersHelper
|
||||
def user_level_select(object, field)
|
||||
options = [
|
||||
["Member", User::Levels::MEMBER],
|
||||
["Gold", User::Levels::PRIVILEGED],
|
||||
["Gold", User::Levels::GOLD],
|
||||
["Platinum", User::Levels::PLATINUM],
|
||||
["Builder", User::Levels::BUILDER],
|
||||
["Contributor", User::Levels::CONTRIBUTOR],
|
||||
|
||||
@@ -82,7 +82,7 @@ module ApplicationHelper
|
||||
if positive_or_negative == :positive
|
||||
html << " [" + link_to("+", new_user_feedback_path(:user_feedback => {:category => "positive", :user_id => user.id})) + "]"
|
||||
|
||||
unless user.is_privileged?
|
||||
unless user.is_gold?
|
||||
html << " [" + link_to("invite", new_moderator_invitation_path(:invitation => {:name => user.name, :level => User::Levels::CONTRIBUTOR})) + "]"
|
||||
end
|
||||
else
|
||||
|
||||
@@ -4,7 +4,7 @@ module Moderator
|
||||
choices = [
|
||||
["", ""],
|
||||
["Member", 20],
|
||||
["Privileged", 30],
|
||||
["Gold", 30],
|
||||
["Contributor", 33],
|
||||
["Janitor", 35],
|
||||
["Moderator", 40],
|
||||
|
||||
@@ -2,7 +2,7 @@ module Moderator
|
||||
module InvitationsHelper
|
||||
def level_select
|
||||
choices = []
|
||||
choices << ["Privileged", User::Levels::PRIVILEGED]
|
||||
choices << ["Gold", User::Levels::GOLD]
|
||||
choices << ["Contributor", User::Levels::CONTRIBUTOR]
|
||||
select(:invitation, :level, choices)
|
||||
end
|
||||
|
||||
@@ -10,4 +10,4 @@ module PostAppealsHelper
|
||||
html << '</ul>'
|
||||
html.join("\n").html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user