Skip to content

Commit 47025d0

Browse files
authored
Merge pull request #1549 from codidact/cellio/1540-network-profile-links
linkify entries for posts, reputation on "all communities" page
2 parents 87c06d1 + ea746c1 commit 47025d0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

app/views/users/_network.html.erb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
<% if @user.has_profile_on(c) %>
1010
<tr>
1111
<td><%= user_link @user, { host: c.host}, anchortext: c.name %>
12-
<% if @user.is_moderator_on(c) %>
13-
(moderator)
14-
<% end %>
12+
<% if @user.is_moderator_on(c) %>
13+
(moderator)
14+
<% end %>
15+
</td>
16+
<td><%= link_to user_posts_url(@user, host: c.host) do %>
17+
<%= @user.post_count_on(c) %>
18+
<% end %>
19+
</td>
20+
<td><%= link_to vote_summary_url(@user, host: c.host) do %>
21+
<%= @user.reputation_on(c) %>
22+
<% end %>
1523
</td>
16-
<td><%= @user.post_count_on(c) %> </td>
17-
<td><%= @user.reputation_on(c) %> </td>
1824
</tr>
1925
<% end %>
2026
<% end %>

0 commit comments

Comments
 (0)