From c13ca3ca2c167158ca0f6ff8a20f2b4943f3e04d Mon Sep 17 00:00:00 2001 From: tkimia Date: Tue, 22 Apr 2014 20:17:18 -0400 Subject: users look nice --- app/views/common/_show_user.html.erb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/views/common/_show_user.html.erb (limited to 'app/views/common') diff --git a/app/views/common/_show_user.html.erb b/app/views/common/_show_user.html.erb new file mode 100644 index 0000000..70f1ca4 --- /dev/null +++ b/app/views/common/_show_user.html.erb @@ -0,0 +1,24 @@ +
+
<%= image_tag ('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.email) + '?s=100&d=mm') %>
+ + +
+ <%# "header" %> + <%= link_to(target) do %>

<%= target.user_name %>

<% end %> + +
+
+

Preferred Name:

+

<%= target.name %>

+
+
+

Latest Tournament: + <% if !target.tournaments_played.first.nil? %> + <%= target.tournaments_played.first.name %> + <% end %> +

+
+
+ +
+
\ No newline at end of file -- cgit v1.2.3-2-g168b