summaryrefslogtreecommitdiff
path: root/app/views/tournaments
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-07 00:05:47 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-07 00:05:47 -0500
commitabfb00904d5497c320200f3586fe503820ac651c (patch)
treecfbbfae80b36fa566bade137557c701516ad90ef /app/views/tournaments
parent0eaebadc3d943189bef136bbc2205897c106c507 (diff)
parente74879dd4769e8bed34085ee3f978fc4a31366cb (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/tournaments')
-rw-r--r--app/views/tournaments/join.html.erb2
-rw-r--r--app/views/tournaments/show.html.erb16
2 files changed, 17 insertions, 1 deletions
diff --git a/app/views/tournaments/join.html.erb b/app/views/tournaments/join.html.erb
new file mode 100644
index 0000000..1d38d68
--- /dev/null
+++ b/app/views/tournaments/join.html.erb
@@ -0,0 +1,2 @@
+ <%= @user.name %>
+
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 0cda6c1..c3a40e7 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -1,10 +1,11 @@
<% if @tournament.joinable_by?(current_user) %>
<%= form_tag(tournament_path(@tournament), method: "put") do %>
<input type="hidden" name="update_action" value="join">
- <%= submit_tag("Join") %>
+ <%= current_user.name %><%= submit_tag("Join") %>
<% end %>
<% end %>
+<% if current_user.in_group?(:host) %>
<p>
<strong>Game:</strong>
<%= @tournament.game %>
@@ -45,5 +46,18 @@
<%= @tournament.randomized_teams %>
</p>
+<p>
+ <strong>Status:</strong>
+ <%= @tournament.status %>
+</p>
+
+<%= form_tag(tournaments_path.to_s + "/" + @tournament.id.to_s + "/edit", method: "get") do %>
+ <input type="hidden" name="close_action" value="close">
+ <%= submit_tag("Close Tournament Registration") %>
+<% end %>
+
<%= link_to 'Edit', edit_tournament_path(@tournament) %> |
<%= link_to 'Back', tournaments_path %>
+
+<% end %>
+