Commit 324cd2aa
Changed files (1)
app
views
profiles
app/views/profiles/index.html.erb
@@ -3,42 +3,6 @@
<h1><%= pluralize @profiles.count, "artist" %></h1>
</div>
<div class="row">
- <!--
- <div class="span12">
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th></th>
- <th>name</th>
- <th>location</th>
- <th>twitter</th>
- <th>facebook</th>
- <th>website</th>
- <th>creations</th>
- <th>member since</th>
- </tr>
- </thead>
- <tbody>
- <% @profiles.each do |profile| %>
- <tr>
- <td>
- <ul class="thumbnails">
- <li><a href="<%= url_for profile_path(profile) %>"><%= avatar_for(profile, {class: 'thumbnail'}) %></a></li>
- </ul>
- </td>
- <td><%= link_to profile.name, profile_path(profile) %></td>
- <td><%= profile.city %></td>
- <td><a href="<%= profile.twitter %>"><%= profile.twitter %></a></td>
- <td><a href="<%= profile.facebook %>"><%= profile.facebook %></a></td>
- <td><a href="<%= profile.website %>"><%= profile.website %></a></td>
- <td><a href="<%= url_for profile_path(profile) %>"><%= profile.creations.length %> creations</a></td>
- <td><%= profile.created_at.to_s :foomat %></td>
- </tr>
- <% end %>
- </tbody>
- </table>
- </div>
- -->
<div class="span12">
<ul class="thumbnails">
<% @profiles.each do |profile| %>
@@ -47,7 +11,11 @@
<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>
+ <% if(profile.city.blank?) -%>
+ <h6>unknown</h6>
+ <% else -%>
+ <h6><%= shrink(profile.city, 35) %></h6>
+ <% end -%>
</div>
</div>
</li>