This commit is contained in:
r888888888
2013-11-20 15:45:03 -08:00
parent ce55d57728
commit 231993b98e
11 changed files with 177 additions and 5 deletions

View File

@@ -20,7 +20,11 @@ class PostPresenter < Presenter
else
tag_param = nil
end
html << %{<a href="#{path}/#{post.id}#{tag_param}">}
if options[:mobile]
html << %{<a href="/m#{path}/#{post.id}#{tag_param}">}
else
html << %{<a href="#{path}/#{post.id}#{tag_param}">}
end
html << %{<img src="#{post.preview_file_url}" alt="#{h(post.tag_string)}">}
html << %{</a>}
html << %{</article>}