views: remove IP addresses from most pages.
Removed IP addresses from comments and from most other listing pages. IPs take up a lot of space in many places (especially IPv6 addresses), and in most of these pages they're rarely useful for catching sockpuppets.
This commit is contained in:
@@ -21,11 +21,6 @@
|
|||||||
<%= format_commentary_title(commentary_version.translated_title) %>
|
<%= format_commentary_title(commentary_version.translated_title) %>
|
||||||
<%= format_commentary_description(commentary_version.translated_description) %>
|
<%= format_commentary_description(commentary_version.translated_description) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
<% t.column "IP Address", {width: "10%"} do |commentary_version| %>
|
|
||||||
<%= link_to_ip commentary_version.updater_ip_addr %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% t.column "Edited by", {width: "10%"} do |commentary_version| %>
|
<% t.column "Edited by", {width: "10%"} do |commentary_version| %>
|
||||||
<%= link_to_user commentary_version.updater %>
|
<%= link_to_user commentary_version.updater %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -28,9 +28,6 @@
|
|||||||
<%= link_to "»", artist_versions_path(search: { updater_name: artist_version.updater.name }) %>
|
<%= link_to "»", artist_versions_path(search: { updater_name: artist_version.updater.name }) %>
|
||||||
<p>
|
<p>
|
||||||
<%= compact_time(artist_version.updated_at) %>
|
<%= compact_time(artist_version.updated_at) %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
(<%= link_to_ip artist_version.updater_ip_addr %>)
|
|
||||||
<% end %>
|
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if artist_versions_listing_type == :revert %>
|
<% if artist_versions_listing_type == :revert %>
|
||||||
|
|||||||
@@ -53,13 +53,6 @@
|
|||||||
<li class="comment-unvote-link">
|
<li class="comment-unvote-link">
|
||||||
<%= link_to "Unvote", comment_comment_votes_path(comment_id: comment.id), method: :delete, remote: true %>
|
<%= link_to "Unvote", comment_comment_votes_path(comment_id: comment.id), method: :delete, remote: true %>
|
||||||
</li>
|
</li>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
<li>|</li>
|
|
||||||
<li>
|
|
||||||
<strong>IP</strong>
|
|
||||||
<span><%= link_to_ip comment.creator_ip_addr %></span>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</menu>
|
</menu>
|
||||||
<% if comment.editable_by?(CurrentUser.user) %>
|
<% if comment.editable_by?(CurrentUser.user) %>
|
||||||
<%= render "comments/form", comment: comment, hidden: true %>
|
<%= render "comments/form", comment: comment, hidden: true %>
|
||||||
|
|||||||
@@ -8,9 +8,6 @@
|
|||||||
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
|
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
|
||||||
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to %></li>
|
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to %></li>
|
||||||
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
||||||
<% if CurrentUser.user.is_moderator? %>
|
|
||||||
<li><strong>Sender IP</strong>: <%= link_to_ip @dmail.creator_ip_addr %></li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3>Body</h3>
|
<h3>Body</h3>
|
||||||
|
|||||||
@@ -9,9 +9,6 @@
|
|||||||
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
|
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
|
||||||
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to, :raw => true %></li>
|
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to, :raw => true %></li>
|
||||||
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
||||||
<% if CurrentUser.user.is_moderator? %>
|
|
||||||
<li><strong>Sender IP</strong>: <%= link_to_ip @dmail.creator_ip_addr %></li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3>Body</h3>
|
<h3>Body</h3>
|
||||||
|
|||||||
@@ -24,11 +24,6 @@
|
|||||||
<% t.column "Position", {width: "5%"} do |note_version| %>
|
<% t.column "Position", {width: "5%"} do |note_version| %>
|
||||||
<%= note_version_position_diff(note_version) %>
|
<%= note_version_position_diff(note_version) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
<% t.column "IP Address", {width: "10%"} do |note_version| %>
|
|
||||||
<%= link_to_ip note_version.updater_ip_addr %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% t.column "Edited By", {width: "10%"} do |note_version| %>
|
<% t.column "Edited By", {width: "10%"} do |note_version| %>
|
||||||
<%= link_to_user note_version.updater %>
|
<%= link_to_user note_version.updater %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -23,11 +23,6 @@
|
|||||||
<%= link_to "»", pool_versions_path(search: { updater_id: pool_version.updater_id }) %>
|
<%= link_to "»", pool_versions_path(search: { updater_id: pool_version.updater_id }) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
<% t.column "IP Address" do |pool_version| %>
|
|
||||||
<%= link_to_ip pool_version.updater_ip_addr %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% t.column "Date" do |pool_version| %>
|
<% t.column "Date" do |pool_version| %>
|
||||||
<%= compact_time pool_version.updated_at %>
|
<%= compact_time pool_version.updated_at %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -25,9 +25,6 @@
|
|||||||
<%= link_to "»", post_versions_path(search: params[:search].merge({ updater_name: post_version.updater&.name })) %>
|
<%= link_to "»", post_versions_path(search: params[:search].merge({ updater_name: post_version.updater&.name })) %>
|
||||||
<div>
|
<div>
|
||||||
<%= compact_time(post_version.updated_at) %>
|
<%= compact_time(post_version.updated_at) %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
(<%= link_to_ip post_version.updater_ip_addr %>)
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column do |post_version| %>
|
<% t.column do |post_version| %>
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
<%= compact_time(wiki_page_version.updated_at) %>
|
<%= compact_time(wiki_page_version.updated_at) %>
|
||||||
by
|
by
|
||||||
<%= link_to_user wiki_page_version.updater %>
|
<%= link_to_user wiki_page_version.updater %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
(<%= link_to_ip wiki_page_version.updater_ip_addr %>)
|
|
||||||
<% end %>
|
|
||||||
<%= link_to "»", wiki_page_versions_path(search: { updater_id: wiki_page_version.updater.id }) %>
|
<%= link_to "»", wiki_page_versions_path(search: { updater_id: wiki_page_version.updater.id }) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -28,9 +28,6 @@
|
|||||||
<%= compact_time(wiki_page_version.updated_at) %>
|
<%= compact_time(wiki_page_version.updated_at) %>
|
||||||
by
|
by
|
||||||
<%= link_to_user wiki_page_version.updater %>
|
<%= link_to_user wiki_page_version.updater %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
|
||||||
(<%= link_to_ip wiki_page_version.updater_ip_addr %>)
|
|
||||||
<% end %>
|
|
||||||
<%= link_to "»", wiki_page_versions_path(search: { updater_id: wiki_page_version.updater.id }) %>
|
<%= link_to "»", wiki_page_versions_path(search: { updater_id: wiki_page_version.updater.id }) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user