diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 18:55:38 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 18:55:38 -0500 |
commit | 1788dde36e53c4ef16adc5db2d19f44797325496 (patch) | |
tree | 4d331750a288fcdc052df2ae7dff19c68cd24151 /app/views/tournaments/show.html.erb | |
parent | 39f373778e73c54952dddd11e87f4ba354471622 (diff) |
implement tournament joining
Diffstat (limited to 'app/views/tournaments/show.html.erb')
-rw-r--r-- | app/views/tournaments/show.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 0d9dd10..1470d80 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -1,3 +1,9 @@ +<% if @tournament.joinable_by?(current_user) %> + <%= form_tag(tournament_page(@tournament)+"/join", method: "get") do %> + <%= submit_tag("Join") %> + <% end %> +<% end %> + <p> <strong>Game:</strong> <%= @tournament.game %> |