add post image resize to window option

This commit is contained in:
albert
2013-02-18 14:24:40 -05:00
parent cf6996ee9a
commit 1620d37ebb
3 changed files with 36 additions and 3 deletions

View File

@@ -13,7 +13,6 @@
<li>Source: <%= post_source_tag(post) %></li>
<li>Rating: <%= post.pretty_rating %></li>
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_privileged? %>(vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)<% end %></li>
<li>ID: <%= post.id %></li>
<li>
Status:
<% if post.is_pending? %>
@@ -32,4 +31,5 @@
Active
<% end %>
</li>
<li>ID: <%= post.id %></li>
</ul>

View File

@@ -2,8 +2,9 @@
<% if CurrentUser.is_member? %>
<li><%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %></li>
<li><%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %></li>
<li><%= link_to "Pool", "#", :id => "pool" %></li>
<li><%= link_to "Note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
<li><%= link_to "Add to pool", "#", :id => "pool" %></li>
<li><%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
<li><%= link_to "Resize to window", "#", :id => "image-resize-to-window-link" %></li>
<li><%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %></li>
<% unless post.is_status_locked? %>