From 55f1d11f66f216f0aff40fbe3ba90373339beb55 Mon Sep 17 00:00:00 2001 From: tkimia Date: Mon, 7 Apr 2014 02:48:17 -0400 Subject: profiles updated --- app/views/users/show.html.erb | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'app/views/users/show.html.erb') diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 7bda009..c2b5c75 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,10 +1,8 @@ -

- <%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(@user.email) + '?s=100&d=mm' %> -

+ +

<%= @user.user_name %>'s Profile

- Name: - <%= @user.name %> + <%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(@user.email) + '?s=100&d=mm' %>

@@ -13,9 +11,35 @@

- User name: + Preferred name: <%= @user.user_name %>

+

+ Relationship Status: + too single +

+ +
+
+

Recent Tournaments Players

+
    + <% @user.tournaments_played.each do |t| %> +
  • <%= t.name %>
  • + <% end %> +
+
+
+

Recent Tournaments Hosted

+ <% if @user.tournaments_hosted.count == 0 %>

<%= @user.user_name %> has never hosted a tournament

<%end %> +
    + <% @user.tournaments_hosted.each do |t| %> +
  • <%= t.name %>
  • + <% end %> +
+
+
+ + <%= link_to 'Edit', edit_user_path(@user) %> | <%= link_to 'Users', users_path %> -- cgit v1.2.3