philomena/lib/philomena_web/templates/ip_profile/show.html.slime

40 lines
1.3 KiB
Text
Raw Normal View History

2019-12-08 02:49:28 +01:00
h1
= @ip
' 's IP profile
ul
li = link "View images this IP has uploaded", to: Routes.search_path(@conn, :index, q: "ip:#{@ip}")
li = link "View comments this IP has posted", to: Routes.comment_path(@conn, :index, cq: "ip:#{@ip}")
li = link "View posts this IP has made", to: Routes.post_path(@conn, :index, pq: "ip:#{@ip}")
= render PhilomenaWeb.BanView, "_bans.html", bans: @subnet_bans, conn: @conn
2019-12-08 02:49:28 +01:00
h2 Administration Options
ul
/li = link "View tag changes", "/ip_profiles/#{@ip}/tag_changes"
/li = link "View source URL history", "/ip_profiles/#{@ip}/source_changes"
li = link "View reports this IP has made", to: Routes.admin_report_path(@conn, :index, rq: "ip:#{@ip}")
li = link "View IP ban history", to: Routes.admin_subnet_ban_path(@conn, :index, ip: to_string(@ip))
li = link "Ban this sucker", to: Routes.admin_subnet_ban_path(@conn, :new, specification: to_string(@ip))
2019-12-08 02:49:28 +01:00
h4 Observed users
table.table
thead
tr
th Username
th Account Used
th Last Seen
th Created At
tbody
= for uip <- @user_ips do
tr
td
= link uip.user.name, to: Routes.profile_path(@conn, :show, uip.user)
td
=> uip.uses
' times
td
=> pretty_time uip.updated_at
td
=> pretty_time uip.user.created_at