<%= link_to comment.creator_name, user_path(comment.creator_id) %>
+<%= link_to comment.creator_name, user_path(comment.creator_id) %>
<%= time_ago_in_words(comment.created_at) %> ago
diff --git a/app/views/posts/partials/show/_image.html.erb b/app/views/posts/partials/show/_image.html.erb index 0cffca9a6..bc421716e 100644 --- a/app/views/posts/partials/show/_image.html.erb +++ b/app/views/posts/partials/show/_image.html.erb @@ -1,2 +1 @@ -<%= render :partial => "posts/partials/show/notes", :locals => {:post => post, :notes => post.notes.active} %> -<%= image_tag(post.file_url_for(CurrentUser.user), :alt => post.tag_string, :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image") %> +<%= image_tag(post.file_url_for(CurrentUser.user), :alt => post.tag_string, :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image", "data-width" => post.image_width, "data-height" => post.image_height) %> diff --git a/app/views/posts/partials/show/_notes.html.erb b/app/views/posts/partials/show/_notes.html.erb index 9ed58b19b..f455db603 100644 --- a/app/views/posts/partials/show/_notes.html.erb +++ b/app/views/posts/partials/show/_notes.html.erb @@ -1,3 +1,3 @@ <% notes.each do |note| %> - <%= content_tag(:article, "data-width" => note.width, "data-height" => note.height, "data-x" => note.x, "data-y" => note.y, "data-body" => note.formatted_body) %> + <%= content_tag(:article, "", "data-width" => note.width, "data-height" => note.height, "data-x" => note.x, "data-y" => note.y, "data-body" => note.body) %> <% end %> diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 9a383319c..f3ce45832 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -2,7 +2,7 @@ <%= resize_image_links(post, CurrentUser.user) %>Post
- <%= render :partial => "posts/partials/show/notices", :locals => {:post => @post} %>Image
<%= @post.presenter.image_html(self) %>Notes
<%= render :partial => "notes/note", :collection => @post.notes.active %>Edit
<%= render :partial => "posts/partials/show/edit", :locals => {:post => @post} %>Sign In
- <%= form_tag(session_path) do %> +Login
+ <%= form_tag(session_path, :class => "simple_form") do %> <%= hidden_field_tag "url", params[:url] %> -| - | <%= submit_tag "Login" %> | -
| - <%= label_tag :name %> - | -- <%= text_field_tag :name %> - | -
|---|---|
| <%= label_tag :password %> | -<%= password_field_tag :password %> | -
Registration
+Registration
<%= Danbooru.config.app_name %> is ad-sponsored and does not require an account to view. But in order to start uploading, editing, or creating content on this site, you will need to register. Make sure you read and agree to the <%= link_to "terms of service", terms_of_service_path %> before registering. This site is open to web crawlers, therefore any name you choose will be public!
@@ -64,33 +64,14 @@ - <% form_for(@user) do |f| %> + <%= simple_form_for(@user) do |f| %> <%= error_messages_for("user") %> - -| <%= f.label :name %> | -<%= f.text_field :name %> | -
|---|---|
| <%= f.label :password %> | -<%= f.password_field :password %> | -
| <%= f.label :password_confirmation %> | -<%= f.password_field :password_confirmation %> | -
| <%= f.label :email %> | -<%= f.text_field :email %> | -
| - | <%= submit_tag "Submit" %> | -
Wiki
+ +Read the <%= link_to "full article", wiki_page_path(wiki_page.id) %>.
-There is currently no wiki page for the tag "<%= tag %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => tag}) %>.
- <% end %> +Read the <%= link_to "full article", wiki_page_path(wiki_page.id) %>.
+There is currently no wiki page for the tag "<%= tag %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => tag}) %>.
+ <% end %> +
Comments
<%= render :partial => "comments/partials/index/list", :locals => {:comments => @post.comments, :post => @post, :show_header => false} %>