diff --git a/app/views/blogposts/index.html.erb b/app/views/blogposts/index.html.erb index 51e81de..267d946 100644 --- a/app/views/blogposts/index.html.erb +++ b/app/views/blogposts/index.html.erb @@ -5,7 +5,7 @@
<%= link_to(p.author.avatar(64), p.author, title: p.author.ign) %> - <%= render partial: "users/username", locals: { user: p.author } %> <%= link_to p do %><% end %> + <%= render partial: "users/username", locals: { user: p.author } %> <%= link_to p do %><% end %> <%= link_to pluralize(p.comments.count, "Comment"), p %> diff --git a/app/views/blogposts/show.html.erb b/app/views/blogposts/show.html.erb index b7ac62e..822a7b0 100644 --- a/app/views/blogposts/show.html.erb +++ b/app/views/blogposts/show.html.erb @@ -2,7 +2,7 @@
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %> - <%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %><% end %> + <%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %><% end %> <%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 517f6f7..a20df7d 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -2,7 +2,7 @@
"> <%= link_to(c.author.avatar(64), c.author, title: c.author.ign) %> <%= render partial: "users/username", locals: { user: c.author } %> - <%= link_to "#comment-#{c.id}" do %><% end %> + <%= link_to "#comment-#{c.id}" do %><% end %> <%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index d9659d8..6a3a232 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -9,7 +9,7 @@
<%= link_to(thread.author.avatar(64), thread.author, title: thread.author.ign) %> - <%= render partial: "users/username", locals: { user: thread.author } %> <%= link_to thread do %><% end %> + <%= render partial: "users/username", locals: { user: thread.author } %> <%= link_to thread do %><% end %> <%= link_to pluralize(thread.replies.count, "Reply"), thread %> diff --git a/app/views/forumthreads/show.html.erb b/app/views/forumthreads/show.html.erb index 58f0f25..0d3e234 100644 --- a/app/views/forumthreads/show.html.erb +++ b/app/views/forumthreads/show.html.erb @@ -2,14 +2,14 @@
<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %> - <%= render partial: "users/username", locals: { user: @thread.author } %> <%= link_to p do %><% end %> + <%= render partial: "users/username", locals: { user: @thread.author } %> <%= link_to p do %><% end %> <%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
<% if @thread.edited? %>
- Last edited by <%= link_to @thread.editor.name, @thread.editor %>. + Last edited by <%= link_to @thread.editor.name, @thread.editor %>.
<% end %>
diff --git a/app/views/threadreplies/_reply.html.erb b/app/views/threadreplies/_reply.html.erb index c94265a..4f61370 100644 --- a/app/views/threadreplies/_reply.html.erb +++ b/app/views/threadreplies/_reply.html.erb @@ -2,7 +2,7 @@
<%= link_to(reply.author.avatar(64), reply.author, title: reply.author.ign) %> <%= render partial: "users/username", locals: { user: reply.author } %> - <%= link_to "#reply-#{reply.id}" do %><% end %> + <%= link_to "#reply-#{reply.id}" do %><% end %> <%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.thread.author.is?(current_user) %>