Commit 331b7173

mo k <mo@mokhan.ca>
2012-06-03 06:32:03
clean up the profiles show page.
1 parent f9761ac
Changed files (1)
app
views
app/views/profiles/show.html.erb
@@ -11,17 +11,24 @@
 </div>
 <div class="row">
   <div class="span3">
-    <p><a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&amp;s=200" alt="<%= @profile.name %>" /></a></p>
-    <% unless @profile.website.blank? %>
-      <p><a  href="<%= @profile.website %>" target="_blank"><%= @profile.website %></a></p>
-    <% end %>
-    <% unless @profile.twitter.blank? %>
-      <p><a href="https://twitter.com/<%= @profile.twitter %>" target="_blank" class="twitter-follow-button" data-show-count="false">Follow @<%= @profile.twitter %></a></p>
-      <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
-    <% end %>
-    <% unless @profile.facebook.blank? %>
-      <p><a  href="<%= @profile.facebook %>" target="_blank"><img src="/assets/f_logo_16x16x32.png" alt="Like on Facebook"/> Like on Facebook</a></p>
-    <% end %>
+    <div class="thumbnail">
+      <img src="<%= avatar_url current_user %>&amp;s=260" alt="<%= current_user.name %>" />
+      <div class="caption">
+        <h5><%= current_user.name %></h5>
+        <p>member since: <%= current_user.created_at.to_s :foomat %></p>
+        <p>last signed in: <%= current_user.last_sign_in_at.to_s :foomat %></p>
+        <% unless @profile.website.blank? %>
+          <p><a  href="<%= @profile.website %>" target="_blank"><%= @profile.website %></a></p>
+        <% end %>
+        <% unless @profile.twitter.blank? %>
+          <p><a href="https://twitter.com/<%= @profile.twitter %>" target="_blank" class="twitter-follow-button" data-show-count="false">Follow @<%= @profile.twitter %></a></p>
+          <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
+        <% end %>
+        <% unless @profile.facebook.blank? %>
+          <p><a  href="<%= @profile.facebook %>" target="_blank"><img src="/assets/f_logo_16x16x32.png" alt="Like on Facebook"/> Like on Facebook</a></p>
+        <% end %>
+      </div>
+    </div>
   </div>
   <%= render "shared/a_9_column_gallery" %>
 </div>