Standardize ip address visibility; fixes #1203

This commit is contained in:
Toks
2013-07-11 21:05:56 -04:00
parent f4c5126b11
commit 88afa23223
3 changed files with 12 additions and 4 deletions

View File

@@ -11,6 +11,9 @@
<th>Group</th> <th>Group</th>
<th>Updated</th> <th>Updated</th>
<th>Updated by</th> <th>Updated by</th>
<% if CurrentUser.is_janitor? %>
<th>IP Address</th>
<% end %>
<th>Active</th> <th>Active</th>
<th>URLs</th> <th>URLs</th>
<% if CurrentUser.is_member? %> <% if CurrentUser.is_member? %>
@@ -28,6 +31,11 @@
<td><%= artist_version.group_name %></td> <td><%= artist_version.group_name %></td>
<td><%= compact_time artist_version.created_at %></td> <td><%= compact_time artist_version.created_at %></td>
<td><%= link_to_user artist_version.updater %></td> <td><%= link_to_user artist_version.updater %></td>
<% if CurrentUser.is_janitor? %>
<td>
<%= artist_version.updater_ip_addr %>
</td>
<% end %>
<td><%= artist_version.is_active? %></td> <td><%= artist_version.is_active? %></td>
<td> <td>
<ul> <ul>

View File

@@ -7,7 +7,7 @@
<th width="10%">User</th> <th width="10%">User</th>
<th width="5%">Rating</th> <th width="5%">Rating</th>
<th width="5%">Parent</th> <th width="5%">Parent</th>
<% if CurrentUser.is_admin? %> <% if CurrentUser.is_janitor? %>
<th width="10%">IP Address</th> <th width="10%">IP Address</th>
<% end %> <% end %>
<th>Tags</th> <th>Tags</th>
@@ -28,7 +28,7 @@
</td> </td>
<td><%= post_version.rating %></td> <td><%= post_version.rating %></td>
<td><%= post_version.parent_id %></td> <td><%= post_version.parent_id %></td>
<% if CurrentUser.is_admin? %> <% if CurrentUser.is_janitor? %>
<td> <td>
<%= post_version.updater_ip_addr %> <%= post_version.updater_ip_addr %>
</td> </td>

View File

@@ -16,7 +16,7 @@
<% end %> <% end %>
<th>Title</th> <th>Title</th>
<th width="5%"></th> <th width="5%"></th>
<% if CurrentUser.is_admin? %> <% if CurrentUser.is_janitor? %>
<th width="10%">IP Address</th> <th width="10%">IP Address</th>
<% end %> <% end %>
<th width="26%">Last edited</th> <th width="26%">Last edited</th>
@@ -50,7 +50,7 @@
<% end %> <% end %>
<td class="category-<%= wiki_page_version.category_name %>"><%= link_to wiki_page_version.title, wiki_page_version_path(wiki_page_version) %></td> <td class="category-<%= wiki_page_version.category_name %>"><%= link_to wiki_page_version.title, wiki_page_version_path(wiki_page_version) %></td>
<td><%= link_to "wiki", wiki_page_path(wiki_page_version.wiki_page_id) %></td> <td><%= link_to "wiki", wiki_page_path(wiki_page_version.wiki_page_id) %></td>
<% if CurrentUser.is_admin? %> <% if CurrentUser.is_janitor? %>
<td> <td>
<%= wiki_page_version.updater_ip_addr %> <%= wiki_page_version.updater_ip_addr %>
</td> </td>