From def21c442c6e4b52b50f852cedd3e8bcaf436f9d Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Mon, 3 Mar 2014 13:17:02 -0500 Subject: Changed the views for tournament a little more. --- app/views/tournaments/index.html.erb | 2 +- app/views/tournaments/new.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb index 73b064e..6006cad 100644 --- a/app/views/tournaments/index.html.erb +++ b/app/views/tournaments/index.html.erb @@ -24,4 +24,4 @@
-<%= link_to 'New Tournament', new_tournament_path %> +<%= link_to 'New Tournament', new_tournament_path, :class => "btn btn-warning btn-lg" %> diff --git a/app/views/tournaments/new.html.erb b/app/views/tournaments/new.html.erb index de80fb7..dee18fb 100644 --- a/app/views/tournaments/new.html.erb +++ b/app/views/tournaments/new.html.erb @@ -7,6 +7,6 @@

-<%= link_to 'Create Tournament', "create", :class => "btn btn-warning btn-lg", :role => "submit" %> +<%= link_to 'Create Tournament', "#", :class => "btn btn-warning btn-lg" %> <%= link_to 'Back', tournaments_path %> -- cgit v1.2.3-2-g168b From 8c0cd2f7c5d3152c1674cd730d649a787a8eb67c Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Mon, 3 Mar 2014 13:53:21 -0500 Subject: Made it so 'log out' only appears if you're logged in. --- app/views/layouts/application.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 92fce3d..071c86b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,7 +20,9 @@ <% end %>

  • - <%= link_to "Sign out", signout_path, method: "delete" %> + <%= if signed_in? do %> + <%= link_to "Sign out", signout_path, method: "delete" %> + <% end; end %>
  • -- cgit v1.2.3-2-g168b