app/views/elabs/articles/show.html.haml in elabs-3.0.0 vs app/views/elabs/articles/show.html.haml in elabs-4.0.0
- old
+ new
@@ -11,15 +11,15 @@
%strong= _('Author:')
= link_to @article.user.display_name, @article.user
%li
= icon('calendar-check', ['fw'])
%strong= _('Published at:')
- = short_date @article.published_at
+ = medium_datetime @article.published_at
%li
= icon('calendar', ['fw'])
%strong= _('Updated at:')
- = short_date @article.updated_at
+ = medium_datetime @article.updated_at
%li.separator
= icon('info', ['fw'])
%strong= _('SFW:')
= boolean_icon_tag @article.sfw, 'is-sfw', 'is-nsfw'
%li
@@ -34,11 +34,11 @@
%li.separator= render 'elabs/layouts/lists/projects', projects: @article.projects
%li.separator= render 'elabs/layouts/lists/tags', tags: @article.tags
.content
%article{ lang: @article.language.iso639_1 }
- = markdown @article.excerpt
- = markdown @article.content
+ = render_entity_content @article, :excerpt
+ = render_entity_content @article, :content
= render 'elabs/comments/comments',
entity: @article,
new_comment: @new_comment,
url: article_create_comment_path(@article)