diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-22 18:27:34 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-22 18:27:34 -0400 |
commit | f12a66473c024cad3b1947e148d2df230884c468 (patch) | |
tree | 45333387accbcc7fef9e66e078ce943b737b1ae3 /app/views | |
parent | b7cbf3df615575fe1d24a9ea1ddfded094ae529f (diff) | |
parent | a185e81094bed6626ac69449eff0f01bdfbc5197 (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views')
-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 %> |