expose resize image to window functionality to anon users
This commit is contained in:
@@ -61,7 +61,7 @@ class AnonymousUser
|
||||
end
|
||||
|
||||
def always_resize_images?
|
||||
false
|
||||
true
|
||||
end
|
||||
|
||||
def show_samples?
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<ul>
|
||||
<li><%= link_to "Resize to window", "#", :id => "image-resize-to-window-link" %></li>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<li><%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites", :title => "Shortcut is F" %></li>
|
||||
<li><%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %></li>
|
||||
<li><%= link_to_if post.visible?, "Download", post.file_url, :download => post.presenter.humanized_essential_tag_string + " - " + post.file_name %></li>
|
||||
@@ -56,4 +58,5 @@
|
||||
<li><%= link_to "Replace Image", new_post_replacement_path(:post_id => post.id), :id => "replace-image" %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
<%= render "posts/partials/show/information", :post => @post %>
|
||||
</section>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<section id="post-options">
|
||||
<h1>Options</h1>
|
||||
<%= render "posts/partials/show/options", :post => @post %>
|
||||
</section>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<section id="post-history">
|
||||
<h1>History</h1>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user