spec/refile/test_app/app/views/normal_posts/show.html.erb in refile-0.4.2 vs spec/refile/test_app/app/views/normal_posts/show.html.erb in refile-0.5.0
- old
+ new
@@ -1,15 +1,17 @@
-<h1><%= @post.title %></h1<>
+<h1><%= @post.title %></h1>
<% if @post.image %>
<%= attachment_image_tag(@post, :image) %>
<% end %>
<% if @post.document %>
<%= link_to "Document", attachment_url(@post, :document) %>
-<% end %>
-<% if @post.document %>
+ <p class="content-type"><%= @post.document_content_type %></p>
+ <p class="size"><%= @post.document_size %></p>
+ <p class="filename"><%= @post.document_filename %></p>
+
<%= link_to "Convert to Upper", attachment_url(@post, :document, :convert_case, format: "up") %>
<% end %>
<%= link_to "Edit", edit_normal_post_url(@post) %>