Skip to content

Commit bdce2cc

Browse files
committed
adds post count to 'see all' button on user profile
1 parent df7d457 commit bdce2cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/users/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<h2 class="user-profile-heading">Posts</h2>
8686
<% if @posts.size > 0 %>
8787
<%= link_to user_posts_path(@user), class: "button is-muted", 'aria-label': "View all posts by #{rtl_safe_username(@user)}" do %>
88-
See all &raquo;
88+
See all <%= @posts.count %> &raquo;
8989
<% end %>
9090
<% end %>
9191
</div>
@@ -98,7 +98,7 @@
9898
<% end %>
9999
</div>
100100
<%= link_to user_posts_path(@user), class: "button is-muted", 'aria-label': "View all posts by #{rtl_safe_username(@user)}" do %>
101-
See all &raquo;
101+
See all <%= @posts.count %> &raquo;
102102
<% end %>
103103
<% end %>
104104
</div>

0 commit comments

Comments
 (0)