Skip to content

Commit

Permalink
Show list of plugin authors with homepage and use actual data from pl…
Browse files Browse the repository at this point in the history
…ugin.json

refs #4578
  • Loading branch information
halfdan committed Jan 27, 2014
1 parent 424f3d7 commit 4fcd238
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions plugins/CorePluginsAdmin/templates/macros.twig
Expand Up @@ -166,12 +166,23 @@
{% if plugin.info.license_homepage is defined %}<a title="{{ 'CorePluginsAdmin_LicenseHomepage'|translate }}" target="_blank" href="{{ plugin.info.license_homepage }}">{% endif %}{{ plugin.info.license }}{% if plugin.info.license_homepage is defined %}</a>{% endif %}
</div>
{% endif %}
{% if plugin.info.author is defined %}
{% if plugin.info.authors is defined %}
<div class="plugin-author">
<cite>By
{% if plugin.info.author_homepage is defined %}
<a title="{{ 'CorePluginsAdmin_AuthorHomepage'|translate }}" href="{{ plugin.info.author_homepage }}" target="_blank">
{% endif %}{{ plugin.info.author }}{% if plugin.info.author_homepage is defined -%}</a>{% endif -%}
{% if plugin.info.authors is defined %}
{% spaceless %}
{% for author in plugin.info.authors if author.name %}
{% if author.homepage is defined %}
<a title="{{ 'CorePluginsAdmin_AuthorHomepage'|translate }}" href="{{ author.homepage }}" target="_blank">{{ author.name }}</a>
{% else %}
{{ author.name }}
{% endif %}
{% if loop.index < plugin.info.authors|length %}
,
{% endif %}
{% endfor %}
{% endspaceless %}
{% endif %}
.</cite>
</div>
{% endif %}
Expand Down Expand Up @@ -213,4 +224,4 @@
</table>
</div>

{% endmacro %}
{% endmacro %}

0 comments on commit 4fcd238

Please sign in to comment.