1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <table>
- {% if plugin.author %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.AUTHOR"|t }}:</td>
- <td class="double">
- {% if plugin.author.url %}
- <a href="{{ plugin.author.url }}" target="_blank" rel="noopener noreferrer">{{ plugin.author.name }}</a>
- {% else %}
- {{ plugin.author.name }}
- {% endif %}
- {% if plugin.author.email %}
- - <a href="mailto:{{ plugin.author.email }}">{{ plugin.author.email }}</a>
- {% endif %}
- </td>
- </tr>
- {% endif %}
- {% if plugin.homepage %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.HOMEPAGE"|t }}:</td>
- <td class="double"><a href="{{ plugin.homepage }}" target="_blank" rel="noopener noreferrer">{{ plugin.homepage }}</a></td>
- </tr>
- {% endif %}
- {% if plugin.demo %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.DEMO"|t }}:</td>
- <td class="double"><a href="{{ plugin.demo }}" target="_blank" rel="noopener noreferrer">{{ plugin.demo }}</a></td>
- </tr>
- {% endif %}
- {% if plugin.bugs %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.BUG_TRACKER"|t }}:</td>
- <td class="double"><a href="{{ plugin.bugs }}" target="_blank" rel="noopener noreferrer">{{ plugin.bugs }}</a></td>
- </tr>
- {% endif %}
- {% if plugin.keywords %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.KEYWORDS"|t }}:</td>
- <td class="double">{{ plugin.keywords|join(', ') }}</td>
- </tr>
- {% endif %}
- {% if plugin.license %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.LICENSE"|t }}:</td>
- {% if plugin.license|starts_with('http') %}
- <td class="double"><a href="{{ plugin.license }}" target="_blank">{{ plugin.license }}</a></td>
- {% else %}
- <td class="double">{{ plugin.license }}</td>
- {% endif %}
- </tr>
- {% endif %}
- {% if plugin.description %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.DESCRIPTION"|t }}:</td>
- <td class="double">{{ plugin.description_html|raw }}</td>
- </tr>
- {% endif %}
- {% if plugin.readme or plugin.homepage %}
- {% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %}
- <tr>
- <td>{{ plugin.readme ? "PLUGIN_ADMIN.README"|t : "PLUGIN_ADMIN.DOCS"|t }}:</td>
- <td class="double"><a href="{{ readme_link }}" target="_blank" rel="noopener noreferrer">{{ readme_link }}</a></td>
- </tr>
- {% endif %}
- {% if admin.gpm.findPackage(plugin.slug, true).changelog %}
- <tr>
- <td>{{ "PLUGIN_ADMIN.CHANGELOG"|t }}:</td>
- <td class="double"><a class="button button-small" href="#" data-remodal-target="changelog" data-remodal-changelog="{{ admin_route('/changelog/slug:' ~ plugin.slug) }}"><i class="fa fa-binoculars"></i> View Changelog</a></td>
- </tr>
- {% endif %}
- </table>
|