Skip to content

Commit

Permalink
added links to users pages on articles and comments pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Jun 18, 2024
1 parent aa28bc2 commit 9429a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/users/articles.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1> <%= user.name %>'s Articles</h1>
<h1> <%= link_to "#{user.name}'s", user %> Articles</h1>
<ul>
<% user.articles.each do |article| %>
<li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/comments.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1> <%= user.name %>'s Comments</h1>
<h1> <%= link_to "#{user.name}'s", user %> Comments</h1>
<ul>
<% user.comments.each do |comment| %>
<li>
Expand Down

0 comments on commit 9429a61

Please sign in to comment.