Commit 14e7fc77

mo k <mo@mokhan.ca>
2012-06-09 04:14:21
make the images of artists in the search page a link.
1 parent 1b9b860
Changed files (1)
app
views
app/views/search/index.html.erb
@@ -1,6 +1,4 @@
-<% content_for :title do %>
-  Search Results for <%= @search %>
-<% end %>
+<% content_for :title do %>Search Results for <%= @search %><% end %>
 <div class="row">
   <div class="span12">
     <h1>Search Results for <em><%= @search %></em></h1>
@@ -12,7 +10,7 @@
   <% @members.each do |artist| %>
     <div class="span3">
       <div class="thumbnail">
-        <img src="<%= avatar_url artist %>&amp;s=260" alt="<%= artist.name %>" />
+        <a href="<%= url_for profile_path(artist) %>"><img src="<%= avatar_url artist %>&amp;s=260" alt="<%= artist.name %>" /></a>
         <div class="caption">
           <h5><%= artist.name %></h5>
         </div>