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

@@ -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>