From 1d509d6109c402545e08917e65fd09b471553900 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 28 Apr 2014 11:06:04 -0400 Subject: tidy various forms and inline CSS --- app/views/common/_show_tournament.html.erb | 12 ++++++------ app/views/common/_show_user.html.erb | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'app/views/common') diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index 454377e..826eeaa 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -6,18 +6,18 @@
<%# "header" %> <%= link_to(target) do %>

<%= target.name %>

<% end %> -
+
<%= image_tag('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=45&d=identicon') %> <%= target.hosts.first.name %>'s tournament
-

Players per team: <%= target.min_players_per_team %>

-

Players signed up: <%= target.players.count %>

+

Players per team: <%= target.min_players_per_team %>

+

Players signed up: <%= target.players.count %>

-

<%# (target.randomized_teams)? "Teams are Random" : "Teams are Chosen" %>

-

Players signed up: <%= target.players.count %>

+

<%# (target.randomized_teams)? "Teams are Random" : "Teams are Chosen" %>

+

Players signed up: <%= target.players.count %>

@@ -31,7 +31,7 @@ <% end %>

<% elsif target.players.include?(current_user)%> -

You've signed up for this tournament!

+

You've signed up for this tournament!

<% end %> <% if target.status == 1 && target.stages.first.scheduling_method == "elimination" && target.stages.first.matches.first.status == 0 %> <%= form_tag(tournament_brackets_path(target), method: "post") do %> diff --git a/app/views/common/_show_user.html.erb b/app/views/common/_show_user.html.erb index dd136a0..e442474 100644 --- a/app/views/common/_show_user.html.erb +++ b/app/views/common/_show_user.html.erb @@ -6,7 +6,7 @@ <%# "header" %> <%= link_to(target) do %>

<%= target.user_name %>

<% end %> -
+

Preferred Name:

<%= target.name %>

@@ -21,4 +21,4 @@
-
\ No newline at end of file +
-- cgit v1.2.3-2-g168b