• <%= link_to "Resize to window", "#", :id => "image-resize-to-window-link" %>
  • <% if CurrentUser.is_member? %>
  • <%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites", :title => "Shortcut is F" %>
  • <%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %>
  • <%= link_to_if post.visible?, "Download", post.file_url, :download => post.presenter.humanized_essential_tag_string + " - " + post.file_name %>
  • <%= link_to "Add to pool", "#", :id => "pool" %>
  • <% if post.is_note_locked? %>
  • Note locked
  • <% else %>
  • <%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is N" %>
  • <% end %> <% if CurrentUser.is_builder? && post.has_notes? %>
  • <%= link_to "Copy notes", "#", :id => "copy-notes" %>
  • <% end %>
  • <%= link_to "Add commentary", "#", :id => "add-commentary" %>
  • <%= link_to "Add to favorite group", "#", :id => "open-favgroup-dialog-link" %>
  • <%= link_to "Find similar", iqdb_queries_path(:post_id => post.id), :method => :post, :remote => true %>
  • <% if post.is_status_locked? %>
  • Status locked
  • <% else %> <% if !post.is_deleted? && !post.is_pending? %>
  • <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
  • <% end %> <% if post.is_flagged? || post.is_deleted? %>
  • <%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %>
  • <% end %> <% if CurrentUser.can_approve_posts? %> <% if post.is_deleted? %>
  • <%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete", :data => { :confirm => "Are you sure you want to undelete this post?" } %>
  • <% if post.fav_count > 0 && post.parent_id %>
  • <%= link_to "Move favorites", confirm_move_favorites_moderator_post_post_path(:post_id => post.id) %>
  • <% end %> <% else %>
  • <%= link_to "Delete", confirm_delete_moderator_post_post_path(:post_id => post.id) %>
  • <% end %> <% if post.is_flagged? || post.is_pending? %>
  • <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve", :data => { :confirm => "Are you sure you want to approve this post?" } %>
  • <% else %>
  • <%= link_to "Hide from queue", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
  • <% end %> <% if post.is_banned? %>
  • <%= link_to "Unban", unban_moderator_post_post_path(post), :method => :post %>
  • <% else %>
  • <%= link_to "Ban", confirm_ban_moderator_post_post_path(post) %>
  • <% end %> <% if CurrentUser.is_admin? %>
  • <%= link_to "Expunge", expunge_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "expunge", :data => {:confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?"} %>
  • <% end %>
  • <%= link_to "Replace Image", new_post_replacement_path(:post_id => post.id), :id => "replace-image" %>
  • <% end %> <% end %> <% end %>