Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
display trunacated source links
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Coffman committed Mar 10, 2016
1 parent 6d22da6 commit de53a07
Show file tree
Hide file tree
Showing 7 changed files with 780 additions and 4 deletions.
98 changes: 98 additions & 0 deletions aml_hotspot.tsv

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion app/presenters/variant_datatable_row_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,21 @@ def disease_list
end

def source_list
disease_sources
links = disease_sources
.sort_by { |s| s.pubmed_id }
.take(number_of_links_to_show)
.map { |s| source_link(s) }.join(', ')

remaining = disease_sources.count - number_of_links_to_show

if remaining > 0
links + ", and #{remaining} more."
else
links
end
end

def number_of_links_to_show
5
end
end
2 changes: 1 addition & 1 deletion app/views/static/news.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%br
.news-items
.news-item
%p.lead 2/22/16
%p.lead 3/10/16
%p Database update. Automatic importer implemented to automatically import relevant variants from #{link_to 'CIViC', 'https://civic.genome.wustl.edu'}, a database of clinical interpretations of variants in cancer.
.news-item
%p.lead 1/15/16
Expand Down
2 changes: 1 addition & 1 deletion app/views/variants/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
%th Amino Acid
%th Mutation Type
%th.desktop Diseases
%th.desktop PubMed IDs
%th.desktop Citations
%tbody


2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Application < Rails::Application
config.autoload_paths += %W(#{config.root}/lib)
config.assets.initialize_on_precompile = false

config.data_dump_version = 10
config.data_dump_version = 11
config.data_dump_path = File.join(Rails.root, 'db', 'data.sql')

# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
Expand Down
662 changes: 662 additions & 0 deletions docm-8-15-14.tsv

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions known_issues
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
chr column sort
red code blocks on api docs
vcf mime type after download?
rounded vs square corners on page frame

0 comments on commit de53a07

Please sign in to comment.