about summary refs log tree commit diff
path: root/app/helpers/admin/account_moderation_notes_helper.rb
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-05-14 14:14:00 -0500
committerGitHub <noreply@github.com>2018-05-14 14:14:00 -0500
commitb5684e987484661ba63fc9815c03667a8a93586e (patch)
tree755476fb27484fb36bd01578f8f22d4dd8d64562 /app/helpers/admin/account_moderation_notes_helper.rb
parent46659655439e7d76726aa38ed5d599a795b3790f (diff)
parentba7ee67498905cbc96d531d45a80e284880e09ee (diff)
Merge pull request #481 from ThibG/glitch-soc/merge
Merge upstream changes
Diffstat (limited to 'app/helpers/admin/account_moderation_notes_helper.rb')
-rw-r--r--app/helpers/admin/account_moderation_notes_helper.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/helpers/admin/account_moderation_notes_helper.rb b/app/helpers/admin/account_moderation_notes_helper.rb
index fdfadef08..49e764cef 100644
--- a/app/helpers/admin/account_moderation_notes_helper.rb
+++ b/app/helpers/admin/account_moderation_notes_helper.rb
@@ -10,10 +10,16 @@ module Admin::AccountModerationNotesHelper
     end
   end
 
+  def admin_account_inline_link_to(account)
+    link_to admin_account_path(account.id), class: name_tag_classes(account, true) do
+      content_tag(:span, account.acct, class: 'username')
+    end
+  end
+
   private
 
-  def name_tag_classes(account)
-    classes = ['name-tag']
+  def name_tag_classes(account, inline = false)
+    classes = [inline ? 'inline-name-tag' : 'name-tag']
     classes << 'suspended' if account.suspended?
     classes.join(' ')
   end