about summary refs log tree commit diff
path: root/app/helpers/admin
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-05-12 17:44:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-05-12 17:44:15 +0200
commit0f2fbf7d05825447a0f2a1e82b6137c069cb1658 (patch)
tree2ba520a7d71c0d2ec7e4a7dbfc973af264eb70c1 /app/helpers/admin
parent7467361d706e38aa53b6bd2fcb919153327175ed (diff)
Improvements to toots display in admin view (#7452)
* Distinguish boosts from original statuses in the admin panel (fixes #7449)

* Show the “show more” button in admin view to make CWs clearer (fixes #7451)

* Make content warnings swag
Diffstat (limited to 'app/helpers/admin')
-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