This commit is contained in:
r888888888
2015-02-20 20:04:23 -08:00
parent b93cda01b8
commit f12fb40e3e
9 changed files with 37 additions and 4 deletions

View File

@@ -37,6 +37,12 @@ class PostPresenter < Presenter
html << %{</p>}
end
if options[:size]
html << %{<p class="desc">}
html << post.file_size.to_formatted_s(:human_size)
html << %{</p>}
end
html << %{</article>}
html.html_safe
end