summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb1
-rw-r--r--views/neighbors.haml2
2 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index c5e1a83..f742442 100644
--- a/application.rb
+++ b/application.rb
@@ -143,6 +143,7 @@ class Application < Sinatra::Base
end
get '/search/?' do
+ redirect to("/") if params[:name].empty?
@cids = from_name params[:name]
if !@cids or @cids.empty?
haml :not_found
diff --git a/views/neighbors.haml b/views/neighbors.haml
index d6fbd7e..c7a181a 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -8,7 +8,7 @@
- neighbors(@cid).each do |n|
- unless assays(n,"active").empty? and assays(n,"inactive").empty?
%tr
- %th{:valign => "top", :colspan => "3"}
+ %th{:style => "vertical-align:top;", :colspan => "3"}
= name n
(
= similarity(@cid,n).round(3)