diff --git a/app/views/artist_versions/index.html.erb b/app/views/artist_versions/index.html.erb index 6f6014183..515c0d390 100644 --- a/app/views/artist_versions/index.html.erb +++ b/app/views/artist_versions/index.html.erb @@ -14,7 +14,9 @@ Updated by Active URLs - + <% if CurrentUser.is_member? %> + + <% end %> @@ -34,11 +36,11 @@ <%= artist_version_urls_diff(artist_version) %> - - <% if CurrentUser.is_member? %> + <% if CurrentUser.is_member? %> + <%= link_to "Revert", revert_artist_path(artist_version.artist_id, :version_id => artist_version.id), :method => :put, :confirm => "Are you sure you want to revert this artist?" %> - <% end %> - + + <% end %> <% end %> diff --git a/app/views/note_versions/index.html.erb b/app/views/note_versions/index.html.erb index 50d9e6486..b21035602 100644 --- a/app/views/note_versions/index.html.erb +++ b/app/views/note_versions/index.html.erb @@ -8,13 +8,15 @@ Post Note - Body + Body <% if CurrentUser.is_janitor? %> IP Address <% end %> Edited By Date - Options + <% if CurrentUser.is_member? %> + + <% end %> @@ -31,11 +33,11 @@ <% end %> <%= link_to_user note_version.updater %> <%= compact_time note_version.updated_at %> - - <% if CurrentUser.is_member? %> + <% if CurrentUser.is_member? %> + <%= link_to "Revert", revert_note_path(note_version.note_id, :version_id => note_version.id), :remote => true, :method => :put, :confirm => "Do you really want to revert to this version?" %> - <% end %> - + + <% end %> <% end %> diff --git a/app/views/pool_versions/index.html.erb b/app/views/pool_versions/index.html.erb index 128798f51..ce440b022 100644 --- a/app/views/pool_versions/index.html.erb +++ b/app/views/pool_versions/index.html.erb @@ -9,9 +9,13 @@ Post Count Changes Updater - IP Address + <% if CurrentUser.is_janitor? %> + IP Address + <% end %> Date - + <% if CurrentUser.is_member? %> + + <% end %> @@ -21,13 +25,17 @@ <%= link_to pool_version.post_id_array.size, pool_versions_path(:search => {:pool_id => pool_version.pool_id}) %> <%= pool_version_diff(pool_version) %> <%= link_to_user pool_version.updater%> - - <% if CurrentUser.is_janitor? %> + <% if CurrentUser.is_janitor? %> + <%= pool_version.updater_ip_addr %> - <% end %> - + + <% end %> <%= compact_time pool_version.updated_at %> - <%= link_to "Revert", revert_pool_path(pool_version.pool_id, :version => pool_version.id) %> + <% if CurrentUser.is_member? %> + + <%= link_to "Revert", revert_pool_path(pool_version.pool_id, :version => pool_version.id) %> + + <% end %> <% end %> diff --git a/app/views/post_versions/_listing.html.erb b/app/views/post_versions/_listing.html.erb index 86e883b4c..2d10e98e8 100644 --- a/app/views/post_versions/_listing.html.erb +++ b/app/views/post_versions/_listing.html.erb @@ -10,8 +10,10 @@ <% if CurrentUser.is_admin? %> IP Address <% end %> - Tags - + Tags + <% if CurrentUser.is_member? %> + + <% end %> @@ -32,9 +34,11 @@ <% end %> <%= post_version_diff(post_version) %> - - <%= link_to "Revert", revert_post_path(post_version.post_id, :version_id => post_version.id), :method => :put, :remote => true %> - + <% if CurrentUser.is_member? %> + + <%= link_to "Revert", revert_post_path(post_version.post_id, :version_id => post_version.id), :method => :put, :remote => true %> + + <% end %> <% end %> diff --git a/app/views/wiki_page_versions/index.html.erb b/app/views/wiki_page_versions/index.html.erb index fdf4a120c..258cd755c 100644 --- a/app/views/wiki_page_versions/index.html.erb +++ b/app/views/wiki_page_versions/index.html.erb @@ -11,7 +11,7 @@ - Title + Title <% if CurrentUser.is_admin? %> IP Address