Commit b4c5219b
Changed files (1)
app
views
profiles
app/views/profiles/index.html.erb
@@ -1,8 +1,9 @@
<% provide(:title, pluralize(@profiles.length, "artist")) -%>
<div class="page-header">
- <h1><%= pluralize @profiles.length, "artist" %></h1>
+ <h1><%= pluralize @profiles.count, "artist" %></h1>
</div>
<div class="row">
+ <!--
<div class="span12">
<table class="table table-striped table-bordered">
<thead>
@@ -37,4 +38,20 @@
</tbody>
</table>
</div>
+ -->
+ <div class="span12">
+ <ul class="thumbnails">
+ <% @profiles.each do |profile| %>
+ <li class="span3">
+ <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>
+ <h6><%= profile.city %></h6>
+ </div>
+ </div>
+ </li>
+ <% end %>
+ </ul>
+ </div>
</div>