Skip to content

Commit

Permalink
Merge pull request #1260 from dnkbln/github_1233
Browse files Browse the repository at this point in the history
(fixed) Github issue #1233
  • Loading branch information
eteubert authored Jan 21, 2022
2 parents 40c7a43 + 584fa5d commit f8c12ca
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions lib/modules/contributors/templates/podcast-contributor-table.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

<div class="podlove-contributors-card">
<div class="podlove-contributors-card-inner">
<div class="podlove-contributors-card-avatar">
{{ contributor.image.html({width: size|default(50), height: size|default(50), class: "", alt: "avatar" }) }}
</div>
{% if option.avatars == "yes" %}
<div class="podlove-contributors-card-avatar">
{{ contributor.image.html({width: size|default(50), height: size|default(50), class: "", alt: "avatar" }) }}
</div>
{% endif %}
<div class="podlove-contributors-card-person">
<div style="align-self: center">
<div style="font-weight: 400;">{{ contributor.name }}</div>
Expand All @@ -28,17 +30,19 @@
}}
</a>
{% endfor %}
{% for service in contributor.services({category: "donation"}) %}
<a class="podlove-contributors-card-services-service" target="_blank" title="{{ service.title }}" href="{{ service.profileUrl }}">
{{
{% if option.donations == "yes" %}
{% for service in contributor.services({category: "donation"}) %}
<a class="podlove-contributors-card-services-service" target="_blank" title="{{ service.title }}" href="{{ service.profileUrl }}">
{{
service.image.html({
width: 20,
class: "",
alt: service.title ~ " Icon"
})
}}
</a>
{% endfor %}
</a>
{% endfor %}
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit f8c12ca

Please sign in to comment.