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>Updated</th>
<th>Updated by</th>
<% if CurrentUser.is_janitor? %>
<th>IP Address</th>
<% end %>
<th>Active</th>
<th>URLs</th>
<% if CurrentUser.is_member? %>
@@ -28,6 +31,11 @@
<td><%= artist_version.group_name %></td>
<td><%= compact_time artist_version.created_at %></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>
<ul>

View File

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

View File

@@ -16,7 +16,7 @@
<% end %>
<th>Title</th>
<th width="5%"></th>
<% if CurrentUser.is_admin? %>
<% if CurrentUser.is_janitor? %>
<th width="10%">IP Address</th>
<% end %>
<th width="26%">Last edited</th>
@@ -50,7 +50,7 @@
<% end %>
<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>
<% if CurrentUser.is_admin? %>
<% if CurrentUser.is_janitor? %>
<td>
<%= wiki_page_version.updater_ip_addr %>
</td>