summaryrefslogtreecommitdiff
path: root/app/views/search
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-22 18:25:02 -0400
committertkimia <tkimia@purdue.edu>2014-04-22 18:25:02 -0400
commitcd54af413c57581f35026f60dc24e4bc21bb0bd1 (patch)
tree13d998ec11676a8ba8f9c273b54b6d5908cb22fb /app/views/search
parent266602ea1e97d886f031b80add7a760034221f76 (diff)
footer is ok?
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/go.html.erb5
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 %>