Skip to content

Commit

Permalink
Merge pull request NEUBIAS#607 from NEUBIAS/all_modules
Browse files Browse the repository at this point in the history
Simplify and improve the all modules pages
  • Loading branch information
tischi authored Dec 25, 2023
2 parents d3ab797 + 7a26015 commit dd2e8f3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 137 deletions.
26 changes: 13 additions & 13 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ kind: "lesson"
module_order:
- tool_installation
- pixels
- image_formation_confocal
- lut
- spatial_calibration
- multidimensional_image_basics
- datatypes
- image_file_formats
- big_image_file_formats
- image_inspection_and_presentation
- volume_slicing
- projections
- volume_viewer
Expand All @@ -42,31 +41,32 @@ module_order:
- global_background_correction
- filter_neighbourhood
- median_filter
- workflow_segment_2d_noisy_nuclei_filter_objects_measure_shape
- filter_morphological
- local_background_correction
- filter_objects
- workflow_segment_2d_noisy_nuclei_filter_objects_measure_shape
- image_inspection_and_presentation
- distance_transform
- watershed
- skeletonization
- workflow_nuclei_and_cells_segmentation
- workflow_golgi_per_cell
- manual_segmentation
- deep_learning_run_segmentation
- script_env
- skeletonization
- ome_zarr
- script_run
- script_record
- script_variables
- script_for_loop
- commenting
- string_concat
- output_saving
- batch_processing
- script_functions
- fetching_user_input
- ome_zarr
- commenting
- script_env
- script_functions
- script_for_loop
- correlative_image_rendering
- deep_learning_run_segmentation
- manual_segmentation
- workflow_golgi_per_cell
- big_image_file_formats
- image_formation_confocal

# Sites
repository: <USERNAME>/<PROJECT>
Expand Down
130 changes: 10 additions & 120 deletions _includes/all-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,10 @@ open an issue: https://github.com/carpentries/styles/issues/new
{% endfor %}



{% assign all = episodes %}
{% assign workflows = episodes | where_exp: "item", "item.tags contains 'workflow'" %}
{% assign scriptings = episodes | where_exp: "item", "item.tags contains 'scripting'" %}
{% assign drafts = episodes | where_exp: "item", "item.tags contains 'draft'" %}



<div class="container-fluid">
<div class="row">
{% for e in all %}

{% if e.tags contains "draft" or e.tags contains "workflow" or e.tags contains "scripting" %}
{% continue %}
{% endif %}
{% for e in episodes %}

{% assign tags = "" | split: ", " %}
{% for tag in e.tags %}
Expand All @@ -50,117 +39,21 @@ open an issue: https://github.com/carpentries/styles/issues/new
{% endunless %}
{% endfor %}

<div class="col-xs-4">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{ e.url | relative_url }}">
<h4>{{ e.title }}</h4>
<h5>{{ tags | array_to_sentence_string }}</h5>
</a>
</div>
<div class="panel-body">
<img src="{{ e.figure | relative_url }}" alt="">
</div>
</div>
</div>

{% endfor %}
</div>
</div>



<h2 id="workflows"><a href="#workflows">Workflows</a></h2>
<div class="container-fluid">
<div class="row">
{% for e in workflows %}

{% if e.tags contains 'draft' %}
{% continue %}
{% endif %}

{% assign tags = "" | split: ", " %}
{% for tag in e.tags %}
{% unless tag == "scripting" or tag == "draft" or tag == "workflow" %}
{% assign tags = tags | push: tag %}
{% endunless %}
{% endfor %}

<div class="col-xs-4">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{ e.url | relative_url }}">
<h4>{{ e.title }}</h4>
<h5>{{ tags | array_to_sentence_string: ',' }}</h5>
</a>
</div>
<div class="panel-body">
<img src="{{ e.figure | relative_url }}" alt="">
</div>
</div>
</div>

{% endfor %}
</div>
</div>



<h2 id="scripting"><a href="#scripting">Scripting</a></h2>
<div class="container-fluid">
<div class="row">
{% for e in scriptings %}

{% assign title_prefix = "" %}
{% if e.tags contains "draft" %}
{% continue %}
{% assign title_prefix = "Draft: " %}
{% elsif e.tags contains "workflow" %}
{% assign title_prefix = "Workflow: " %}
{% elsif e.tags contains "scripting" %}
{% assign title_prefix = "Scripting: " %}
{% endif %}


{% assign tags = "" | split: ", " %}
{% for tag in e.tags %}
{% unless tag == "scripting" or tag == "draft" or tag == "workflow" %}
{% assign tags = tags | push: tag %}
{% endunless %}
{% endfor %}

<div class="col-xs-4">
<div class="col-6 col-sm-4 col-md-3 col-lg-2 col-xl-1">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{ e.url | relative_url }}">
<h4>{{ e.title }}</h4>
<h5>{{ tags | array_to_sentence_string: ',' }}</h5>
</a>
</div>
<div class="panel-body">
<img src="{{ e.figure | relative_url }}" alt="">
</div>
</div>
</div>

{% endfor %}
</div>
</div>



<h2 id="drafts"><a href="#drafts">Drafts</a></h2>
<div class="container-fluid">
<div class="row">
{% for e in drafts %}

{% assign tags = "" | split: ", " %}
{% for tag in e.tags %}
{% unless tag == "scripting" or tag == "draft" or tag == "workflow" %}
{% assign tags = tags | push: tag %}
{% endunless %}
{% endfor %}

<div class="col-xs-4">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{ e.url | relative_url }}">
<h4>{{ e.title }}</h4>
<h5>{{ tags | array_to_sentence_string: ',' }}</h5>
<h4>{{ title_prefix}}{{ e.title }}</h4>
<h5>{{ tags | array_to_sentence_string }}</h5>
</a>
</div>
<div class="panel-body">
Expand All @@ -170,8 +63,5 @@ open an issue: https://github.com/carpentries/styles/issues/new
</div>

{% endfor %}

</div>
</div>


4 changes: 2 additions & 2 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

{% include life_cycle.html %}

<div class="container">
<div class="container-fluid">
{% include navbar.html %}
{{ content }}
{% if site.kind == "workshop" %}
Expand All @@ -64,4 +64,4 @@
</div>
{% include javascript.html %}
</body>
</html>
</html>
14 changes: 12 additions & 2 deletions assets/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd2e8f3

Please sign in to comment.