From 9c1ca95437e8fa05dd3df9f2bdc9f26e7fa7eec4 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Fri, 12 Oct 2018 16:41:19 +0200 Subject: [PATCH 1/9] Added some descriptions to contributors who had none --- nf-core-contributors.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nf-core-contributors.yaml b/nf-core-contributors.yaml index 02483513f1..cd53ee57eb 100644 --- a/nf-core-contributors.yaml +++ b/nf-core-contributors.yaml @@ -25,6 +25,10 @@ contributors: - full_name: Quantitative Biology Center short_name: QBiC + description: > + The Quantitative Biology Center provides a one-stop-shop for access to high-throughput + technologies in the life sciences and the required bioinformatics analysis. + As a bioinformatics core facility, we provide advanced data analysis techniques. affiliation: Universität Tübingen address: Auf der Morgenstelle 10, 72076 Tübingen, Germany url: http://qbic.life @@ -53,7 +57,9 @@ contributors: - full_name: Genomics Institute of Singapore short_name: GIS - region: "A*STAR" + description: > + The Genome Institute of Singapore (GIS) is a national initiative for Singapore with a global vision that + seeks to use genomic sciences to achieve extraordinary improvements in human health and public prosperity. address: 60 Biopolis St, Singapore 138672, Singapore url: https://www.a-star.edu.sg/gis affiliation_url: https://www.a-star.edu.sg @@ -63,10 +69,8 @@ contributors: contact_github: andreas-wilm location: [1.3025202, 103.7904214] - - full_name: The Competence Centre for Genome Analysis Kiel short_name: CCGA Kiel - region: Kiel University, Germany address: Christian-Albrechts-Platz 4, 24118 Kiel, Germany contact: Marc Hoeppner contact_email: mphoeppner@gmail.com @@ -86,7 +90,7 @@ contributors: location: [45.7438643, 4.8735019] twitter: iarcwho - - full_name: Sanger Institute + - full_name: The Wellcome Trust Sanger Institute short_name: Sanger url: https://www.sanger.ac.uk/ address: Wellcome Trust Genome Campus, Hinxton CB10 1SA, United Kingdom From c6b897ac678e7e523bc8b1b42dc1aa0c7cffbfc1 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Fri, 12 Oct 2018 17:36:38 +0200 Subject: [PATCH 2/9] Visual tweaks to the pipelines page --- public_html/assets/css/nf-core.css | 11 ++++++- public_html/pipelines.php | 51 ++++++++++++++++++------------ update_pipeline_details.php | 4 +++ 3 files changed, 44 insertions(+), 22 deletions(-) diff --git a/public_html/assets/css/nf-core.css b/public_html/assets/css/nf-core.css index 1d53b69fbc..5643369030 100644 --- a/public_html/assets/css/nf-core.css +++ b/public_html/assets/css/nf-core.css @@ -42,6 +42,12 @@ blockquote a { min-width: 100%; } } +/* Don't stretch the final card across the full row if an odd number */ +@media only screen and (min-width: 1000px) { + .card_deck_card.card { + max-width: calc(50% - 30px); + } +} .site-nav { padding: .2rem 1rem; @@ -350,7 +356,7 @@ Based on https://codepen.io/wintr/pen/beBJBb */ */ .pipelines-toolbar .pipeline-filters input { - max-width: 6rem; + max-width: 10rem; } .pipelines-toolbar .btn.active { opacity: 0.8; @@ -374,6 +380,9 @@ Based on https://codepen.io/wintr/pen/beBJBb */ font-size: 0.8rem; color: #999; } +.pipeline .stargazers .far { + color: #DAA520; +} .pipeline .stargazers:hover { color: #DAA520; text-decoration: none; diff --git a/public_html/pipelines.php b/public_html/pipelines.php index 5923605432..1ce1713dc1 100644 --- a/public_html/pipelines.php +++ b/public_html/pipelines.php @@ -3,8 +3,20 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); +function rsort_releases($a, $b){ + $t1 = strtotime($a->published_at); + $t2 = strtotime($b->published_at); + return $t2 - $t1; +} +function rsort_pipelines($a, $b){ + $t1 = strtotime($a->last_release); + $t2 = strtotime($b->last_release); + return $t2 - $t1; +} + $pipelines_json = json_decode(file_get_contents('pipelines.json')); $pipelines = $pipelines_json->remote_workflows; +usort($pipelines, 'rsort_pipelines'); // From https://stackoverflow.com/a/18891474/713980 function time_ago($date) { @@ -34,14 +46,9 @@ function time_ago($date) { } return "$difference $periods[$j] {$tense}"; } -function rsort_releases($a, $b){ - $t1 = strtotime($a->published_at); - $t2 = strtotime($b->published_at); - return $t2 - $t1; -} $title = 'Pipelines'; -$subtitle = 'Browse the '.$pipelines_json->pipeline_count.' pipelines that are currently available as part of nf-core.'; +$subtitle = 'Browse the '.$pipelines_json->pipeline_count.' pipelines that are currently available as part of nf-core.'; include('../includes/header.php'); ?> @@ -50,31 +57,31 @@ function rsort_releases($a, $b){ Let us know!