Skip to content

Commit

Permalink
Merge pull request #5454 from galaxyproject/narwhal-richter
Browse files Browse the repository at this point in the history
plausible stats for materials contributed to by an individual/org/funder
  • Loading branch information
bgruening authored Oct 15, 2024
2 parents ed3376a + 23017b0 commit f9a9393
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -939,9 +939,9 @@ hexylena:
joined: 2017-09
elixir_node: nl
affiliations:
- erasmusmc
- gallantries
- by-covid
- erasmusmc
- elixir-europe
- elixir-converge
former_affiliations:
Expand Down Expand Up @@ -1421,6 +1421,7 @@ mjostaszewski:
orcid: 0000-0003-1473-370X
affiliations:
- elixir-europe
- by-covid

MariaTsayo:
name: Maria Tsagiopoulou
Expand Down Expand Up @@ -1501,6 +1502,7 @@ MattiHoch:
orcid: 0000-0002-2486-0246
affiliations:
- elixir-europe
- by-covid

maximskorik:
name: Maxim Skoryk
Expand Down
13 changes: 12 additions & 1 deletion _layouts/contributor_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
}

</style>

{% assign stats_filters = "" | split: ',' %}
<section class="contributor-page contributor-{{ page.contributor }}">
<div class="stats">
<div class="row">
Expand Down Expand Up @@ -63,7 +65,7 @@ <h2>Former Affiliations</h2>
{% assign member_count = entity.members | size %}
{% if member_count > 0 %}
<h2>Members</h2>
<p class="text-muted">These individuals have noted that they are affiliated in some way with this organisation. This list is non-exhaustive.</p>
<p class="text-muted">These individuals have noted that they are affiliated in some way with this organisation. This list is non-exhaustive, and randomly ordered.</p>
<div class="contributors-line">
{% include _includes/contributor-list.html contributors=entity.members badge=true shuffle=true %}
</div>
Expand Down Expand Up @@ -116,6 +118,7 @@ <h3>Editorial Roles</h3>
<h3>Tutorials</h3>
<ul>
{% for res in page.tutorials %}
{% assign stats_filters = stats_filters | push: res[0].url %}
<li>
{% assign topic_id = res[0] | get_topic %}
{% assign topic = site.data[topic_id] %}
Expand All @@ -141,6 +144,7 @@ <h3>Tutorials</h3>
<h3>Slides</h3>
<ul>
{% for res in page.slides %}
{% assign stats_filters = stats_filters | push: res[0].url %}
<li>
{% assign topic_id = res[0] | get_topic %}
{% assign topic = site.data[topic_id] %}
Expand All @@ -166,6 +170,7 @@ <h3>Slides</h3>
<h3>Learning Pathways</h3>
<ul>
{% for res in page.learning_pathways %}
{% assign stats_filters = stats_filters | push: res[0].url %}
<li>
<a href="{{ site.baseurl }}/{{ res[0].url }}">
{{ res[0].title }}
Expand Down Expand Up @@ -210,6 +215,7 @@ <h3>Video Recordings</h3>
<h3>Events</h3>
<ul>
{% for res in page.events %}
{% assign stats_filters = stats_filters | push: res[0].url %}
<li>
<a href="{{ site.baseurl }}/{{ res[0].url }}">
{{ res[0].title }}
Expand All @@ -230,6 +236,7 @@ <h3>Events</h3>
<h3>News</h3>
<div class="newslist">
{% for n in page.news %}
{% assign stats_filters = stats_filters | push: n.url %}
{% include _includes/news-card.html news=n %}
{% endfor %}
</div>
Expand Down Expand Up @@ -464,3 +471,7 @@ <h2>External Links</h2>
}
});
</script>


<h3>Stats for materials contributed to by {{ entity.name | default: page.contributor }}</h3>
<iframe plausible-embed src="https://plausible.galaxyproject.eu/training.galaxyproject.org?page=%7E{{stats_filters | join:"|"}}&embed=true&theme=system&background=transparent&period=12mo" scrolling="no" frameborder="0" loading="lazy" style="width: 1px; min-width: 100%; height: 1800px;"></iframe>

0 comments on commit f9a9393

Please sign in to comment.