From a421aace7383bb6718d23eed1bde02659a7a93ff Mon Sep 17 00:00:00 2001 From: Tomer Kimia Date: Thu, 6 Mar 2014 15:57:26 -0500 Subject: login fixed and some views look better --- app/views/sessions/new.html.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/views/sessions/new.html.erb') diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 6d73b1f..6439b9f 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -2,22 +2,22 @@ <% if @user.nil? %>

The email or password is incorrect. Verify that CAPS LOCK is not on, and then retype the current email and password.

<% end %> -
+
<%= form_for(:session, url: sessions_path) do |f| %> - - <%= f.label :email %> - <%= f.text_field :email%> - - <%= f.label :user_name %> - <%= f.text_field :user_name%> - - <%= f.label :password %> +

+ <%= f.label(:username_or_email, "Username/Email") %>
+ <%= f.text_field :username_or_email%> +

+

+ <%= f.label :password %>
<%= f.password_field :password %> - +

+

<%= f.submit "Sign in", class: "btn btn-large btn-primary" %> +

<% end %>

New user? <%= link_to "Sign up now!", new_user_path %>

-
+ -- cgit v1.2.3-54-g00ecf From 240d8602fb6aaf249b33db7b0c2f8a72add63658 Mon Sep 17 00:00:00 2001 From: Tomer Kimia Date: Thu, 6 Mar 2014 16:09:22 -0500 Subject: tournaments table only shows if tournaments exits --- app/views/sessions/new.html.erb | 2 +- app/views/tournaments/index.html.erb | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'app/views/sessions/new.html.erb') diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 6439b9f..398cb49 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -18,6 +18,6 @@

<% end %> -

New user? <%= link_to "Sign up now!", new_user_path %>

+

New user? <%= link_to("Sign up now!", new_user_path) %>

diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb index 26d0643..e9147f6 100644 --- a/app/views/tournaments/index.html.erb +++ b/app/views/tournaments/index.html.erb @@ -1,6 +1,7 @@ -

Listing tournaments

+

Listing Tournaments

- +<% if @tournaments.length > 0 %> +
@@ -21,7 +22,9 @@ <% end %>
Tournament ID
- +<% else %> +

No tournaments going on right now... Why not start your own?

+<% end %>
<%= link_to 'New Tournament', new_tournament_path, :class => "btn btn-warning btn-lg" %> -- cgit v1.2.3-54-g00ecf