summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTomer Kimia <tkimia@purdue.edu>2014-03-03 20:46:18 -0500
committerTomer Kimia <tkimia@purdue.edu>2014-03-03 20:46:18 -0500
commitd8ce62fa89705ff9d93d28c3ce626ce9268a01af (patch)
treed0c70b14f43fc0407bafd07f35e92bb1d73d4f6e /app
parent25ec3364c15751207cd9dd56157e103a4ee9d782 (diff)
signed in people see a link to make a new tournament
Diffstat (limited to 'app')
-rw-r--r--app/views/static/homepage.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/static/homepage.html.erb b/app/views/static/homepage.html.erb
index 5887d5f..8b96e11 100644
--- a/app/views/static/homepage.html.erb
+++ b/app/views/static/homepage.html.erb
@@ -7,8 +7,11 @@
<% if !signed_in? %>
<%= link_to 'Log In', "/signin", :class => "btn btn-warning btn-lg", :role => "button" %>
<%= link_to 'Sign Up', "/signup", :class => "btn btn-warning btn-lg", :role => "button" %>
+ <% else %>
+ <%= link_to 'Start a Tournament', new_tournament_path, :class => "btn btn-warning btn-lg", :role => "button" %>
<% end %>
<%= link_to 'See Ongoing Tournaments', tournaments_path, :class => "btn btn-warning btn-lg", :role => "button" %>
+
</p>
</div>