Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update on "Make Insights Table More Descriptive in Spam 2 #10959" issue #10967

Merged
merged 1 commit into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions app/views/spam2/_insights.html.erb
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
<div class="card-deck w-100 mb-3" id="stats_spam">
<div class="card">
<div class="card-body">
<a class="card-title text-secondary h5 font-weight-bold" href="/spam2/filter/unmoderated/30"> <i class="fa fa-circle text-primary"></i> Unmoderated</a>
<a class="card-title text-secondary h5 font-weight-bold" href="/spam2/filter/unmoderated/30"> <i class="fa fa-circle text-primary"></i> Unmoderated</a>
<ul class="list-group list-group-flush text-secondary mt-3">
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Unmoderated Nodes"><%= Node.where(status: 4).size%></span></li>
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Unmoderated Comments"><%= Comment.where(status: 4).size %></span></li>
<li class="list-group-item"><span title="Unmoderated Nodes"><%= Node.where(status: 4).size%> nodes</span></li>
<li class="list-group-item"><span title="Unmoderated Comments"><%= Comment.where(status: 4).size %> comments</span></li>
</ul>
</div>
</div>
<div class="card">
<div class="card-body">
<a class="card-title h5 text-secondary font-weight-bold" href="/spam2/filter/spammed/30"> <i class="fa fa-ban text-danger"></i> Spammed</a>
<a class="card-title h5 text-secondary font-weight-bold" href="/spam2/filter/spammed/30"> <i class="fa fa-ban text-danger"></i> Spammed</a>
<ul class="list-group list-group-flush text-secondary mt-3">
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Spammed Nodes"><%= Node.where(status: 0).size%></span></li>
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Spammed Comments"><%= Comment.where(status: 0).size %></span></li>
<li class="list-group-item"><span title="Spammed Nodes"><%= Node.where(status: 0).size%> nodes</span></li>
<li class="list-group-item"><span title="Spammed Comments"><%= Comment.where(status: 0).size %> comments</span></li>
</ul>
</div>
</div>
<div class="card">
<div class="card-body">
<a class="card-title h5 text-secondary font-weight-bold" href="/spam2/flags/filter/all/30"> <i class="fa fa-flag text-warning"></i> Flagged</a>
<a class="card-title h5 text-secondary font-weight-bold" href="/spam2/flags/filter/all/30"> <i class="fa fa-flag text-warning"></i> Flagged</a>
<ul class="list-group list-group-flush text-secondary mt-3">
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Flagged Nodes"><%= Node.where('flag > ?', 0).size%></span></li>
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Spammed Comments"><%= Comment.where('flag > ?', 0).size %></span></li>
<li class="list-group-item"><span title="Flagged Nodes"><%= Node.where('flag > ?', 0).size%> nodes</span></li>
<li class="list-group-item"><span title="Flagged Comments"><%= Comment.where('flag > ?', 0).size %> comments</span></li>
</ul>
</div>
</div>
<div class="card">
<div class="card-body">
<a class="card-title h5 text-secondary font-weight-bold" href="/spam2/filter/published/30"> <i class="fa fa-check text-success"></i> Published</a>
<ul class="list-group list-group-flush text-secondary mt-3">
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Published Nodes"><%= Node.where(status: 1).size%></span></li>
<li class="list-group-item"><span data-toggle="tooltip" data-placement="top" title="Published Comments"><%= Comment.published.count %></span></li>
<li class="list-group-item"><span title="Published Nodes"><%= Node.where(status: 1).size%> nodes</span></li>
<li class="list-group-item"><span title="Published Comments"><%= Comment.published.count %> comments</span></li>
</ul>
</div>
</div>
Expand Down