1
0

modtools.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @extends('admin.partial.template-full')
  2. @section('section')
  3. <div class="title d-flex justify-content-between align-items-center">
  4. <span><a href="/i/admin/users/show/{{$user->id}}" class="btn btn-outline-secondary btn-sm font-weight-bold">Back</a></span>
  5. <span class="text-center">
  6. <h3 class="font-weight-bold mb-0">&commat;{{$profile->username}}</h3>
  7. <p class="mb-0 small text-muted text-uppercase font-weight-bold">
  8. <span>{{$profile->statuses()->count()}} Posts</span>
  9. <span class="px-1">|</span>
  10. <span>{{$profile->followers()->count()}} Followers</span>
  11. <span class="px-1">|</span>
  12. <span>{{$profile->following()->count()}} Following</span>
  13. </p>
  14. </span>
  15. <span>
  16. <div class="dropdown">
  17. <button class="btn btn-outline-secondary btn-sm font-weight-bold dropdown-toggle" type="button" id="userActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-bars"></i></button>
  18. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="userActions">
  19. <a class="dropdown-item" href="/i/admin/users/show/{{$user->id}}">
  20. <span class="font-weight-bold">Overview</span>
  21. </a>
  22. <a class="dropdown-item" href="/i/admin/users/activity/{{$user->id}}">
  23. <span class="font-weight-bold">Activity</span>
  24. </a>
  25. <a class="dropdown-item" href="/i/admin/users/message/{{$user->id}}">
  26. <span class="font-weight-bold">Send Message</span>
  27. </a>
  28. <a class="dropdown-item" href="{{$profile->url()}}">
  29. <span class="font-weight-bold">View Profile</span>
  30. </a>
  31. <div class="dropdown-divider"></div>
  32. <a class="dropdown-item" href="/i/admin/users/edit/{{$user->id}}">
  33. <span class="font-weight-bold">Edit</span>
  34. </a>
  35. <a class="dropdown-item" href="/i/admin/users/modlogs/{{$user->id}}">
  36. <span class="font-weight-bold">Mod Logs</span>
  37. </a>
  38. <div class="dropdown-divider"></div>
  39. <a class="dropdown-item" href="/i/admin/users/delete/{{$user->id}}">
  40. <span class="text-danger font-weight-bold">Delete Account</span>
  41. </a>
  42. </div>
  43. </div>
  44. </span>
  45. </div>
  46. <hr>
  47. <div class="row mb-3">
  48. <div class="col-12 col-md-8 offset-md-2">
  49. <p class="title h4 font-weight-bold mt-2 py-2">Mod Tools</p>
  50. <hr>
  51. <div class="row">
  52. <div class="col-12 col-md-6">
  53. <form method="post" action="/i/admin/users/moderation/update" class="pb-3">
  54. @csrf
  55. <input type="hidden" name="action" value="cw">
  56. <input type="hidden" name="profile_id" value="{{$profile->id}}">
  57. <button class="btn btn-outline-{{$profile->cw ? 'secondary' : 'primary'}} py-0 font-weight-bold">
  58. {{$profile->cw ? 'Remove CW Enforcement' : 'Enforce CW'}}
  59. </button>
  60. <p class="help-text text-muted font-weight-bold small">Adds a CW to every post made by this account.</p>
  61. </form>
  62. </div>
  63. <div class="col-12 col-md-6">
  64. <form method="post" action="/i/admin/users/moderation/update" class="pb-3">
  65. @csrf
  66. <input type="hidden" name="action" value="unlisted">
  67. <input type="hidden" name="profile_id" value="{{$profile->id}}">
  68. <button class="btn btn-outline-{{$profile->unlisted ? 'secondary' : 'primary'}} py-0 font-weight-bold">
  69. {{$profile->unlisted ? 'Remove Unlisting' : 'Unlisted Posts'}}
  70. </button>
  71. <p class="help-text text-muted font-weight-bold small">Removes account from public/network timelines.</p>
  72. </form>
  73. </div>
  74. <div class="col-12 col-md-6">
  75. <form method="post" action="/i/admin/users/moderation/update" class="pb-3">
  76. @csrf
  77. <input type="hidden" name="action" value="no_autolink">
  78. <input type="hidden" name="profile_id" value="{{$profile->id}}">
  79. <button class="btn btn-outline-{{$profile->no_autolink ? 'secondary' : 'primary'}} py-0 font-weight-bold">
  80. {{$profile->no_autolink ? 'Remove No Autolinking' : 'No Autolinking'}}
  81. </button>
  82. <p class="help-text text-muted font-weight-bold small">Do not transform mentions, hashtags or urls into HTML.</p>
  83. </form>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. @endsection