diff --git a/_includes/pathway-card.html b/_includes/pathway-card.html new file mode 100644 index 00000000000000..88f1f1553e84f7 --- /dev/null +++ b/_includes/pathway-card.html @@ -0,0 +1,32 @@ +{% assign path = include.path %} + +{% assign coverimage = path.coverimage | default: "/assets/images/GTNLogo1000.png" %} +{% assign coverimagealt = path.coverimagealt | default: "GTN logo with a multi-coloured star and the words Galaxy Training Network"%} + + +
+ +
+
+ {% if path.cover-image %} + {{ path.cover-image-alt }} + {% else %} + {{ coverimagealt }} + {% endif %} +
+
+
{{path.title}}
+

+ {{path.description}} +

+
+ +
+
+
+ + diff --git a/assets/css/main.scss b/assets/css/main.scss index 60c34d713be902..bf33ce320262ed 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -572,7 +572,7 @@ blockquote { } } -.pathway{ +.pathwaylist{ display: flex; flex-wrap: wrap; flex-direction: row; @@ -580,19 +580,31 @@ blockquote { margin-bottom: 2rem; .pathwayitem { - width: 100%; background: transparent; - border: 1px solid var(--border-light); + + .card{ + margin-bottom: 1em; + } + .card-body{ + height: 17rem; + overflow: hidden; + } + .card-text{ + margin: 1rem; + vertical-align: center; + } + .card-title{ + height: 5rem; + } .card-header { - background: var(--brand-color); - border-bottom: 1px solid var(--border-light); + background: var(--brand-color); + border-bottom: 1px solid var(--border-light); } } .pathwaycover { width: 100%; object-fit: cover; - margin-top: auto; - margin-bottom: auto; + margin-top: 1em; background-color: white; border-radius: 2rem;; padding: 1rem; diff --git a/learning-pathways/admin-training.md b/learning-pathways/admin-training.md index cc338b90969f0e..61fce4be9a50e4 100644 --- a/learning-pathways/admin-training.md +++ b/learning-pathways/admin-training.md @@ -1,6 +1,7 @@ --- layout: learning-pathway title: Admin Training Course +type: admin-dev description: | Learn how to setup, configure, and maintain your own Galaxy server. This learning pathway will guide you through all the steps required to setup your own Galaxy server with Ansible, diff --git a/learning-pathways/genome-annotation-eukaryote.md b/learning-pathways/genome-annotation-eukaryote.md index 2b2668b9b62d93..f27edf38d3961f 100644 --- a/learning-pathways/genome-annotation-eukaryote.md +++ b/learning-pathways/genome-annotation-eukaryote.md @@ -3,6 +3,7 @@ layout: learning-pathway title: Genome annotation for eukaryotes description: | Learn how to annotate an eukaryotic genome sequence: identify repeated regions, find the position and function of genes, and even set up a manual curation environment with Apollo. +type: use tags: [genome annotation, eukaryote] cover-image: assets/images/gga.png @@ -12,6 +13,8 @@ maintainers: funding: - erasmusplus + + pathway: - section: "Module 1: Introduction" description: | diff --git a/learning-pathways/genome-annotation-prokaryote.md b/learning-pathways/genome-annotation-prokaryote.md index e0b5ba98fc8d7e..3d98afb34c5419 100644 --- a/learning-pathways/genome-annotation-prokaryote.md +++ b/learning-pathways/genome-annotation-prokaryote.md @@ -3,6 +3,7 @@ layout: learning-pathway title: Genome annotation for prokaryotes description: | Learn how to annotate a prokaryotic genome sequence: find the position and function of genes, and even set up a manual curation environment with Apollo. +type: use tags: [genome annotation, prokaryote] cover-image: assets/images/gga.png diff --git a/learning-pathways/index.md b/learning-pathways/index.md index 16b4311a4b24cd..8c52972c511538 100644 --- a/learning-pathways/index.md +++ b/learning-pathways/index.md @@ -2,46 +2,40 @@ layout: page --- -{% assign pathways = site.pages | where: "layout", "learning-pathway" | sort: "priority", "last" %} +{% assign pathways_science = site.pages | where: "layout", "learning-pathway" | where: "type", "use" | sort: "priority", "last" %} + +{% assign pathways_other = site.pages | where: "layout", "learning-pathway" | where_exp: "item", "item.type != 'use'" | sort: "priority", "last" %} # Learning Pathways Learning pathways are sets of tutorials curated for you by community experts to form a coherent set of lessons around a topic, building up knowledge as you go. We always recommend to follow the tutorials in the order they are listed in the pathway. +## For Scientists + + -
-{% for path in pathways %} - -{% assign coverimage = path.coverimage | default: "/assets/images/GTNLogo1000.png" %} -{% assign coverimagealt = path.coverimagealt | default: "GTN logo with a multi-coloured star and the words Galaxy Training Network"%} -
- -
-
- {% if path.cover-image %} - {{ path.cover-image-alt }} - {% else %} - {{ coverimagealt }} - {% endif %} -
-
-
-

- {% for tag in path.tags %} - {{ tag }} - {% endfor %} -
-

- {{ path.description }} -

- View Learning Pathway -
-
-
+
+ + +{% for path in pathways_science %} + +{% include _includes/pathway-card.html path=path %} + +{% endfor %} +
+ +## For Teachers, Developers and System Administrators + + +
+ +{% for path in pathways_other %} + +{% include _includes/pathway-card.html path=path %} + {% endfor %} +
diff --git a/learning-pathways/intro-to-galaxy-and-ecology.md b/learning-pathways/intro-to-galaxy-and-ecology.md index db636659bc8d2a..e3696cb0eb40d1 100644 --- a/learning-pathways/intro-to-galaxy-and-ecology.md +++ b/learning-pathways/intro-to-galaxy-and-ecology.md @@ -1,6 +1,7 @@ --- layout: learning-pathway tags: [beginner] +type: use maintainers: - yvanlebras diff --git a/learning-pathways/intro-to-galaxy-and-genomics.md b/learning-pathways/intro-to-galaxy-and-genomics.md index 04a5839a4a340e..0ad675bd28147f 100644 --- a/learning-pathways/intro-to-galaxy-and-genomics.md +++ b/learning-pathways/intro-to-galaxy-and-genomics.md @@ -1,6 +1,7 @@ --- layout: learning-pathway tags: [beginner] +type: use maintainers: - shiltemann diff --git a/learning-pathways/intro-to-r-and-ml.md b/learning-pathways/intro-to-r-and-ml.md index d5c9561c6f9daf..56749f657177b4 100644 --- a/learning-pathways/intro-to-r-and-ml.md +++ b/learning-pathways/intro-to-r-and-ml.md @@ -1,6 +1,7 @@ --- layout: learning-pathway tags: [beginner] +type: use maintainers: - fpsom diff --git a/learning-pathways/metagenomics.md b/learning-pathways/metagenomics.md index 4a123cb724c9c3..73e43f65ac9668 100644 --- a/learning-pathways/metagenomics.md +++ b/learning-pathways/metagenomics.md @@ -1,5 +1,6 @@ --- layout: learning-pathway # (uncomment this line to activate it) +type: use maintainers: - bebatut @@ -54,7 +55,7 @@ pathway: description: | This module covers the following questions: - Which species (or genera, families, ...) are present in my sample? - - What are the different approaches and tools to get the community profile of my sample? + - What are the different approaches and tools to get the community profile of my sample? - How can we visualize and compare community profiles? This module will cover taxonomic profiling in theory and also with an example tutorial. @@ -67,15 +68,15 @@ pathway: #description: Application tutorial #- section: "Module 6: Taxonomic binning" - # description: + # description: # # tutorials: # - name: learner_participation_engagement # topic: metagenomics - + #- section: "Module 7: Community Biodiversity" - # description: + # description: # # tutorials: # - name: learner_participation_engagement diff --git a/learning-pathways/pathway-example.md b/learning-pathways/pathway-example.md index 5a2319d0b04a36..f46507ffda7c60 100644 --- a/learning-pathways/pathway-example.md +++ b/learning-pathways/pathway-example.md @@ -6,6 +6,8 @@ description: | Description of the pathway. What will be covered, what are the learning objectives, etc? Make this as thorough as possible, 1-2 paragraphs. This appears on the index page that lists all the learning paths, and at the top of the pathway page + +type: use # 'use' for science topics, or admin-dev or instructors tags: [some, keywords, here ] cover-image: assets/images/gat.png # optional, define your own cover image for the pathway index page, default is the GTN logo diff --git a/learning-pathways/train-the-trainers.md b/learning-pathways/train-the-trainers.md index 348a2346f0a4f0..3e8de1f4cfa380 100644 --- a/learning-pathways/train-the-trainers.md +++ b/learning-pathways/train-the-trainers.md @@ -1,5 +1,6 @@ --- layout: learning-pathway # (uncomment this line to activate it) +type: instructors title: Train the Trainers description: |