Commit 0f5b8c55

mo khan <mo@mokhan.ca>
2013-07-06 10:48:56
display creations count next to each profile image
1 parent b0727ef
Changed files (1)
app
views
app/views/profiles/index.html.erb
@@ -7,7 +7,7 @@
         <div class="thumbnail">
           <a href="<%= url_for profile_path(profile) %>"><%= avatar_for(profile) %></a>
           <div class="caption">
-            <h5><a href="<%= url_for profile_path(profile) %>"><%= shrink(profile.name, 20) %></a></h5>
+            <h5><a href="<%= url_for profile_path(profile) %>"><%= shrink(profile.name, 20) %></a> <small>(<%= profile.creations_count %>)</small></h5>
             <% if(profile.city.blank?) -%>
             <h6>somewhere in sugarland</h6>
             <% else -%>