Created
January 19, 2013 13:17
-
-
Save StasKoval/4572664 to your computer and use it in GitHub Desktop.
_stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @user ||= current_user %> | |
<div class="stats"> | |
<!-- | |
<a class="tiny button" href="<%= followers_user_path(@user) %>"> | |
<strong id="followers" class="WishList"> | |
<%= @user.followers.count %> | |
</strong> | |
followers | |
</a> | |
--> | |
<a class="tiny button" href="<%= followers_user_path(@user) %>"> | |
followers | |
<strong id="followers" class="stat"> | |
<%= @user.followers.count %> | |
</strong> | |
</a> | |
<a class="tiny button" href="<%= following_user_path(@user) %>"> | |
following | |
<strong id="following" class="stat"> | |
<%= @user.followed_users.count %> | |
</strong> | |
</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment