diff --git a/app/views/blogposts/show.html.erb b/app/views/blogposts/show.html.erb index 0f24626..0dae530 100644 --- a/app/views/blogposts/show.html.erb +++ b/app/views/blogposts/show.html.erb @@ -1,6 +1,8 @@ <% title "#{@post.title}" %> <%= link_to "News", blogposts_path %> → <%= link_to @post.title %> +

<%= truncate(@post.title, length: 60, omission: " …") %>

+
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %> @@ -10,7 +12,6 @@
-

<%= link_to truncate(@post.title, length: 60, omission: " …"), p %>

<%= render_md(@post.content).html_safe %>
diff --git a/app/views/forumthreads/show.html.erb b/app/views/forumthreads/show.html.erb index 7580818..97c5f81 100644 --- a/app/views/forumthreads/show.html.erb +++ b/app/views/forumthreads/show.html.erb @@ -1,6 +1,8 @@ <% title @thread.title %> <%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%= link_to @thread %> +

<%= truncate(@thread.title, length: 60, omission: " …") %>

+
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %> @@ -15,7 +17,6 @@
<% end %>
-

<%= link_to truncate(@thread.title, length: 60, omission: " …"), p %>

<%= render_md(@thread.content).html_safe %>