diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-22 18:30:11 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-22 18:30:11 -0400 |
commit | e44115cf206804f7a22c5f98ba422d9c61ad81a7 (patch) | |
tree | e60532fbbc7639084ca218a196dc4b0e377ba4e7 /app/views/search/go.html.erb | |
parent | f4373ec761491213a4c5690ef33832f35cbb5e32 (diff) | |
parent | c0ae56e4974a14433a58951c031d4b4c74f57935 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/search/go.html.erb')
-rw-r--r-- | app/views/search/go.html.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/search/go.html.erb b/app/views/search/go.html.erb index 6d5826f..324fa48 100644 --- a/app/views/search/go.html.erb +++ b/app/views/search/go.html.erb @@ -1,10 +1,11 @@ <%# Show search results if a query was not nill %> <% if !@query.empty? %> - <h3> Showing results for: <span><%= @query %></span></h3> + <% if @tournaments.empty? and @players.empty? %> - <p> No results found for "<%= @query %>" </p> + <h3> No results found for "<%= @query %>" </h3> <% else %> + <h3> Showing results for: <span><%= @query %></span></h3> <% if @tournaments.length > 0 %> <h4> Tournaments </h4> <% end %> |