philomena/lib/philomena_web/templates/fingerprint_profile/show.html.heex

93 lines
2.5 KiB
Text
Raw Normal View History

2024-06-02 05:50:36 +02:00
<h1>
<%= @fingerprint %>
's fingerprint profile
</h1>
<ul>
<li>
<%= link("View images this fingerprint has uploaded", to: ~p"/search?#{[q: "fingerprint:#{@fingerprint}"]}") %>
</li>
<li>
<%= link("View comments this fingerprint has posted", to: ~p"/comments?#{[cq: "fingerprint:#{@fingerprint}"]}") %>
</li>
<li>
<%= link("View posts this fingerprint has made", to: ~p"/posts?#{[pq: "fingerprint:#{@fingerprint}"]}") %>
</li>
</ul>
<%= render(PhilomenaWeb.BanView, "_bans.html", bans: @fingerprint_bans, conn: @conn) %>
<h2>
Administration Options
</h2>
<ul>
<li>
<%= link("View tag changes", to: ~p"/fingerprint_profiles/#{@fingerprint}/tag_changes") %>
</li>
<li>
<%= link("View source URL history", to: ~p"/fingerprint_profiles/#{@fingerprint}/source_changes") %>
</li>
<li>
<%= link("View reports this fingerprint has made", to: ~p"/admin/reports?#{[rq: "fingerprint:#{@fingerprint}"]}") %>
</li>
<li>
<%= link("View fingerprint ban history", to: ~p"/admin/fingerprint_bans?#{[fingerprint: @fingerprint]}") %>
</li>
<li>
<%= link("Ban this sucker", to: ~p"/admin/fingerprint_bans/new?#{[fingerprint: @fingerprint]}") %>
</li>
</ul>
<h2>
Actions
</h2>
<ul>
<li>
<%= link("Revert all tag changes", to: ~p"/tag_changes/full_revert?#{[fingerprint: @fingerprint]}", data: [confirm: "Are you really, really sure?", method: "create"]) %>
</li>
<li>
<%=
link("...the button above didn't work (use carefully, this is resource-intensive)",
to: ~p"/tag_changes/full_revert?#{[fingerprint: @fingerprint, batch_size: 1]}",
data: [confirm: "Please confirm that you're aware that this may crash the site and are ready to take on the full wrath of the admins if it does so after you press this button.", method: "create"]
)
%>
</li>
</ul>
<h4>
Observed users
</h4>
<table class="table">
<thead>
<tr>
<th>
Username
</th>
<th>
Account Used
</th>
<th>
Last Seen
</th>
<th>
Created At
</th>
</tr>
</thead>
<tbody>
<%= for ufp <- @user_fps do %>
<tr>
<td>
<%= link(ufp.user.name, to: ~p"/profiles/#{ufp.user}") %>
</td>
<td>
<%= ufp.uses %>
times
</td>
<td>
<%= pretty_time(ufp.updated_at) %>
</td>
<td>
<%= pretty_time(ufp.user.created_at) %>
</td>
</tr>
<% end %>
</tbody>
</table>