summaryrefslogtreecommitdiff
path: root/app/views/static
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 23:52:39 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 23:52:39 -0500
commitacb5be88f394b126c3fba48ceb9798403c5afae1 (patch)
treed28ba5b07bc91cb92f02c9e490bff5501859e6fd /app/views/static
parent9f246b9ec386ccb5e6665408d050cf71fc336283 (diff)
parentec9b2d4f40bd6a878aeca3ca32ba2aafe3836da5 (diff)
Merge branch 'master' of github.com:LukeShu/leager
Conflicts: app/controllers/users_controller.rb app/views/users/index.html.erb
Diffstat (limited to 'app/views/static')
-rw-r--r--app/views/static/homepage.html.erb12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/static/homepage.html.erb b/app/views/static/homepage.html.erb
index 4d52e5b..8b96e11 100644
--- a/app/views/static/homepage.html.erb
+++ b/app/views/static/homepage.html.erb
@@ -1,10 +1,18 @@
<div role="main" class="container theme-showcase">
- <!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<h1>Welcome to Leaguer</h1>
<p>This is a tournment management system designed to be used for any team sport. Our peer review system ensures that the best players move on to the next round! Try creating a new tournament and having people sign up for it. </p>
- <p id="jumbo-buttons"><%= link_to 'Log In / Sign Up', "signup", :class => "btn btn-warning btn-lg", :role => "button" %> <%= link_to 'See Ongoing Tournaments', tournaments_path, :class => "btn btn-warning btn-lg", :role => "button" %> </p>
+ <p id="jumbo-buttons">
+ <% 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>
</div>