From ccc725a6317d22e2a3ccdb958c0852bc691e9b04 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 23 Feb 2013 20:48:35 -0500 Subject: [PATCH] layout changes --- app/views/posts/partials/show/_edit.html.erb | 7 ++++--- app/views/posts/partials/show/_image.html.erb | 4 ---- app/views/posts/partials/show/_notices.html.erb | 8 +++++++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 7504f3700..55dd5e8f1 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -68,6 +68,10 @@ <%= button_tag "Characters", :id => "related-characters-button" %> <%= button_tag "Copyrights", :id => "related-copyrights-button" %> + +
+ <%= submit_tag "Submit" %> +
-
- <%= submit_tag "Submit" %> -
<% end %> diff --git a/app/views/posts/partials/show/_image.html.erb b/app/views/posts/partials/show/_image.html.erb index c8e27f302..7366e4195 100644 --- a/app/views/posts/partials/show/_image.html.erb +++ b/app/views/posts/partials/show/_image.html.erb @@ -1,6 +1,2 @@ -<% if post.has_large? && CurrentUser.default_image_size == "large" %> -

Resized to <%= number_to_percentage post.resize_percentage, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)

-<% end %> - <%= image_tag(post.file_url_for(CurrentUser.user), :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image", "data-original-width" => post.image_width, "data-original-height" => post.image_height, "data-large-width" => post.large_image_width, "data-large-height" => post.large_image_height) %> diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index 9b5263387..eba5f1c19 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -52,4 +52,10 @@
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
-<% end %> \ No newline at end of file +<% end %> + +<% if post.has_large? && CurrentUser.default_image_size == "large" %> +
+ Resized to <%= number_to_percentage post.resize_percentage, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>) +
+<% end %>