pp_hsp would calculate alignment start width incorrectly sometimes. Fix it.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Merge remote-tracking branch 'vivek/master' into next

* vivek/master:
  Rubocop: lib/blast.rb, refactor

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Don't show legend when singular hit obtained

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
t.js: Switch from function defintion to function expression , minor style changes

Changes some variables from snake case to camel case to conform with
the overall style.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
Says 'Download' when only one seq. is present

The change is made directly into the fasta.erb, as use of Javascript
seemed unnecessary.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
Disabled cursor on labels too, Refactor css

Due to specific CSS on classes, the behavior of cursor pointers was
little ambiguous. Despite selecting a nucleotide db, one can see
selectable pointer on protein db label. This is fixed now.

Also, remove other unnecessary CSS customizations.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
Grey out uneligible checkboxes, labels

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
Word break on page-headers

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
Improve code modularity.

And,
* Rename Blast to BLAST.
* Fix Ruby 1.8.7 breakage caused by the rubocop commit.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Show database titles in the BLAST search report.

Previously basename of query databases were shown.

To make this possible:
BLAST::Report now takes database object apart from XML output file. So that
title can be derived when rendering.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
CLI: ensure -s, -m, -l, -u, -i don't get written to config file.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: don't interpret elements dragged from our own page.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: error reading files means it's not FASTA.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: Remove dead code. Improved FASTA detection regex.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: show error messages without any transition.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: Overlay would show the last error message. Fixed it.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: Trim "only FASTA" error message.

Or was split on two lines.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Drag n Drop: Fast forward fade animation if user initiates drag again.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Fix standing issues with FASTA download.

* Faster.
* Was broken on Ruby 1.8.7. Fixed now.
* Can't invoke a random method on sequence object via the URL.
* No unwanted newline between two sequences and at the end of the file.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Rudimentary framework for External Link Customisation

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>