Skip to content

Commit f9a9393

Browse files
authored
Merge pull request #5454 from galaxyproject/narwhal-richter
plausible stats for materials contributed to by an individual/org/funder
2 parents ed3376a + 23017b0 commit f9a9393

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CONTRIBUTORS.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,9 @@ hexylena:
939939
joined: 2017-09
940940
elixir_node: nl
941941
affiliations:
942+
- erasmusmc
942943
- gallantries
943944
- by-covid
944-
- erasmusmc
945945
- elixir-europe
946946
- elixir-converge
947947
former_affiliations:
@@ -1421,6 +1421,7 @@ mjostaszewski:
14211421
orcid: 0000-0003-1473-370X
14221422
affiliations:
14231423
- elixir-europe
1424+
- by-covid
14241425

14251426
MariaTsayo:
14261427
name: Maria Tsagiopoulou
@@ -1501,6 +1502,7 @@ MattiHoch:
15011502
orcid: 0000-0002-2486-0246
15021503
affiliations:
15031504
- elixir-europe
1505+
- by-covid
15041506

15051507
maximskorik:
15061508
name: Maxim Skoryk

_layouts/contributor_index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
}
1616

1717
</style>
18+
19+
{% assign stats_filters = "" | split: ',' %}
1820
<section class="contributor-page contributor-{{ page.contributor }}">
1921
<div class="stats">
2022
<div class="row">
@@ -63,7 +65,7 @@ <h2>Former Affiliations</h2>
6365
{% assign member_count = entity.members | size %}
6466
{% if member_count > 0 %}
6567
<h2>Members</h2>
66-
<p class="text-muted">These individuals have noted that they are affiliated in some way with this organisation. This list is non-exhaustive.</p>
68+
<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>
6769
<div class="contributors-line">
6870
{% include _includes/contributor-list.html contributors=entity.members badge=true shuffle=true %}
6971
</div>
@@ -116,6 +118,7 @@ <h3>Editorial Roles</h3>
116118
<h3>Tutorials</h3>
117119
<ul>
118120
{% for res in page.tutorials %}
121+
{% assign stats_filters = stats_filters | push: res[0].url %}
119122
<li>
120123
{% assign topic_id = res[0] | get_topic %}
121124
{% assign topic = site.data[topic_id] %}
@@ -141,6 +144,7 @@ <h3>Tutorials</h3>
141144
<h3>Slides</h3>
142145
<ul>
143146
{% for res in page.slides %}
147+
{% assign stats_filters = stats_filters | push: res[0].url %}
144148
<li>
145149
{% assign topic_id = res[0] | get_topic %}
146150
{% assign topic = site.data[topic_id] %}
@@ -166,6 +170,7 @@ <h3>Slides</h3>
166170
<h3>Learning Pathways</h3>
167171
<ul>
168172
{% for res in page.learning_pathways %}
173+
{% assign stats_filters = stats_filters | push: res[0].url %}
169174
<li>
170175
<a href="{{ site.baseurl }}/{{ res[0].url }}">
171176
{{ res[0].title }}
@@ -210,6 +215,7 @@ <h3>Video Recordings</h3>
210215
<h3>Events</h3>
211216
<ul>
212217
{% for res in page.events %}
218+
{% assign stats_filters = stats_filters | push: res[0].url %}
213219
<li>
214220
<a href="{{ site.baseurl }}/{{ res[0].url }}">
215221
{{ res[0].title }}
@@ -230,6 +236,7 @@ <h3>Events</h3>
230236
<h3>News</h3>
231237
<div class="newslist">
232238
{% for n in page.news %}
239+
{% assign stats_filters = stats_filters | push: n.url %}
233240
{% include _includes/news-card.html news=n %}
234241
{% endfor %}
235242
</div>
@@ -464,3 +471,7 @@ <h2>External Links</h2>
464471
}
465472
});
466473
</script>
474+
475+
476+
<h3>Stats for materials contributed to by {{ entity.name | default: page.contributor }}</h3>
477+
<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 commit comments

Comments
 (0)