* fix: remove hardcoded paths * fix: use path helpers * swap href for link_to * feat: use path helpers * feat: use a data path to send through the path that we will be calling * feat: pass route through to js * dus index path * chore: change to use path_helpers * feat: update DUS controller * chore: oops remove these paths
23 lines
1.1 KiB
Text
23 lines
1.1 KiB
Text
<div id="possibleSpamUsers">
|
|
<div class="crayons-card">
|
|
<div class="card-header flex items-center" id="possibleSpamUsersHeader">
|
|
<h4>Possible Spam/Abuse Users</h4>
|
|
<button class="btn btn-secondary ml-auto" type="button" data-toggle="collapse" data-target="#possibleSpamUsersBodyContainer" aria-expanded="false" aria-controls="possibleSpamUsersBodyContainer">
|
|
Toggle
|
|
</button>
|
|
</div>
|
|
<div id="possibleSpamUsersBodyContainer" class="collapse hide" aria-labelledby="possibleSpamUsersHeader" data-parent="#possibleSpamUsers">
|
|
<div class="card-body" style="overflow: scroll; max-height: 500px;">
|
|
<% @possible_spam_users.each do |user| %>
|
|
<div class="py-2 flex">
|
|
<a href="<%= user.path %>">@<%= user.username %></a> - <%= user.name %>
|
|
<div class="ml-auto shrink-0">
|
|
<%= link_to "admin User", admin_user_path(user.id), class: "btn btn-secondary btn-sm" %>
|
|
<%= link_to "Destructive Actions", edit_admin_user_path(user.id), class: "btn btn-danger btn-sm" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|