File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
< h3 > <%= @user . username %> </ h3 >
3
3
< ul class ="nav nav-tabs border-0 ">
4
4
< li class ="nav-item ">
5
- <%= link_to "Followers" , followers_path ( @user . username ) , class : "nav-link #{ @title =='Followers' ? 'active' : '' } " %>
5
+ <%= link_to followers_path ( @user . username ) , class : "nav-link #{ @title =='Followers' ? 'active' : '' } " do %>
6
+ Followers
7
+ < span class ="badge badge-secondary ">
8
+ <%= @user . followers . where ( status : 1 ) . length . to_s %>
9
+ </ span >
10
+ <% end %>
6
11
</ li >
7
12
< li class ="nav-item ">
8
- <%= link_to "Following" , following_path ( @user . username ) , class : "nav-link #{ @title =='Following' ? 'active' : '' } " %>
9
- </ li >
13
+ <%= link_to following_path ( @user . username ) , class : "nav-link #{ @title =='Following' ? 'active' : '' } " do %>
14
+ Following
15
+ < span class ="badge badge-secondary ">
16
+ <%= @user . following_users . where ( status : 1 ) . length . to_s %>
17
+ </ span >
18
+ <% end %>
19
+ </ li >
10
20
</ ul >
11
21
<% if @users . length > 0 %>
12
22
< table class ="table ">
You can’t perform that action at this time.
0 commit comments