Skip to content

Commit

Permalink
Aktualisieren app/helpers/application_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBack committed Jan 11, 2023
1 parent 3c4d54d commit b230320
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ def report_spam (text, type)
def rank_badge (user)
bot_icon = fa_icon "robot", text: " Bot"
admin_icon = fa_icon "tools", text: " Staff"
banned_icon = fa_icon "ban", text: " Suspended"
curator_icon = fa_icon "hands-helping", text: " Curator"

if !user.nil?
if(user.deactivated?)
return raw link_to(banned_icon, "https://to.tosdr.org/banned", target: "_blank", title: "This user has been suspended", class: "label label-danger");
end
if(user.bot?)
return raw link_to(bot_icon, "https://to.tosdr.org/bot", target: "_blank", title: "This user is an official ToS;DR Bot", class: "label label-warning");
end
Expand Down

0 comments on commit b230320

Please sign in to comment.