plugin-data.html.twig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <table>
  2. {% if plugin.author %}
  3. <tr>
  4. <td>{{ "PLUGIN_ADMIN.AUTHOR"|tu }}:</td>
  5. <td class="double">
  6. {% if plugin.author.url %}
  7. <a href="{{ plugin.author.url }}" target="_blank">{{ plugin.author.name }}</a>
  8. {% else %}
  9. {{ plugin.author.name }}
  10. {% endif %}
  11. {% if plugin.author.email %}
  12. - <a href="mailto:{{ plugin.author.email }}">{{ plugin.author.email }}</a>
  13. {% endif %}
  14. </td>
  15. </tr>
  16. {% endif %}
  17. {% if plugin.homepage %}
  18. <tr>
  19. <td>{{ "PLUGIN_ADMIN.HOMEPAGE"|tu }}:</td>
  20. <td class="double"><a href="{{ plugin.homepage }}" target="_blank">{{ plugin.homepage }}</a></td>
  21. </tr>
  22. {% endif %}
  23. {% if plugin.demo %}
  24. <tr>
  25. <td>{{ "PLUGIN_ADMIN.DEMO"|tu }}:</td>
  26. <td class="double"><a href="{{ plugin.demo }}" target="_blank">{{ plugin.demo }}</a></td>
  27. </tr>
  28. {% endif %}
  29. {% if plugin.bugs %}
  30. <tr>
  31. <td>{{ "PLUGIN_ADMIN.BUG_TRACKER"|tu }}:</td>
  32. <td class="double"><a href="{{ plugin.bugs }}" target="_blank">{{ plugin.bugs }}</a></td>
  33. </tr>
  34. {% endif %}
  35. {% if plugin.keywords %}
  36. <tr>
  37. <td>{{ "PLUGIN_ADMIN.KEYWORDS"|tu }}:</td>
  38. <td class="double">{{ plugin.keywords|join(', ') }}</td>
  39. </tr>
  40. {% endif %}
  41. {% if plugin.license %}
  42. <tr>
  43. <td>{{ "PLUGIN_ADMIN.LICENSE"|tu }}:</td>
  44. <td class="double">{{ plugin.license }}</td>
  45. </tr>
  46. {% endif %}
  47. {% if plugin.description %}
  48. <tr>
  49. <td>{{ "PLUGIN_ADMIN.DESCRIPTION"|tu }}:</td>
  50. <td class="double">{{ plugin.description_html|raw }}</td>
  51. </tr>
  52. {% endif %}
  53. {% if plugin.readme or plugin.homepage %}
  54. {% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %}
  55. <tr>
  56. <td>{{ "PLUGIN_ADMIN.README"|tu }}:</td>
  57. <td class="double"><a href="{{ readme_link }}" target="_blank">{{ readme_link }}</a></td>
  58. </tr>
  59. {% endif %}
  60. </table>