From bb53f8ac2ab52301b32fe65ddc10a32f6bc730e8 Mon Sep 17 00:00:00 2001 From: tkimia Date: Tue, 22 Apr 2014 17:42:57 -0400 Subject: prelim search --- app/views/common/_show_tournament.html.erb | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/views/common/_show_tournament.html.erb (limited to 'app/views/common') diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb new file mode 100644 index 0000000..89d8f53 --- /dev/null +++ b/app/views/common/_show_tournament.html.erb @@ -0,0 +1,32 @@ +
+
<%= image_tag ('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=100&d=mm') %>
+
+ <%# "header" %> + <%= link_to(target) do %>

<%= target.name %>

<% end %> +
+
+ Hosted by: <%= target.hosts.first.name %> +
+
+

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 %>

+
+
+
+
+ <% if signed_in? %> + <% if !target.players.include?(current_user) %> + <%= form_tag(tournament_path(target), method: "put") do %> + + <%= submit_tag("Join")%> + <% end %> + <% else %> +

You've signed up for this tournament!

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