Skip to content

Commit

Permalink
Merge pull request #737 from tadast/tt/tailwind
Browse files Browse the repository at this point in the history
Improve the starting page UI
  • Loading branch information
yannickwurm committed Apr 11, 2024
2 parents 0f9acaa + 1a5ec63 commit 0297d1a
Show file tree
Hide file tree
Showing 30 changed files with 2,277 additions and 815 deletions.
6 changes: 4 additions & 2 deletions lib/sequenceserver/routes.rb
Expand Up @@ -32,6 +32,8 @@ class Routes < Sinatra::Base
# Override in config.ru if the instance is served under a subpath
# e.g. for example.org/our-sequenceserver set to '/our-sequenceserver'
set :root_path_prefix, ''

set :search_layout, :'search_layout'
end

# See
Expand Down Expand Up @@ -74,7 +76,7 @@ class Routes < Sinatra::Base

# Returns base HTML. Rest happens client-side: rendering the search form.
get '/' do
erb :search, layout: true
erb :search, layout: settings.search_layout
end

# Returns data that is used to render the search form client side. These
Expand All @@ -100,7 +102,7 @@ class Routes < Sinatra::Base
post '/' do
if params[:input_sequence]
@input_sequence = params[:input_sequence]
erb :search, layout: true
erb :search, layout: settings.search_layout
else
job = Job.create(params)
redirect to("/#{job.id}")
Expand Down

0 comments on commit 0297d1a

Please sign in to comment.