1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

[ticket/11150] Display extension status in "gallery"

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-14 13:55:21 +02:00
committed by Tristan Darricau
parent a32d429f1e
commit 51916def9c
4 changed files with 32 additions and 5 deletions

View File

@@ -45,7 +45,16 @@
<tr>
<td>
<strong>{{ extension.name }}</strong><br />
<span><a href="{{ extension.url }}">{{ lang('DETAILS') }}</a> &bull; <a href="{{ U_ACTION }}&amp;action=install&amp;extension={{ extension.composer_name|url_encode }}">{{ lang('INSTALL') }}</a></span>
<span>
<a href="{{ extension.url }}">{{ lang('DETAILS') }}</a> &bull;
{% if extension.name in managed_extensions %}
<span style="color: #228822;">{{ lang('INSTALLED') }}</span>
{% elseif extension.name in installed_extensions -%}
<span style="color: #BC2A4D;">{{ lang('INSTALLED_MANUALLY') }}</span> (<a href="{{ U_ACTION }}&amp;action=manage&amp;extension={{ extension.composer_name|url_encode }}">{{ lang('MANAGE') }}</a>)
{% else -%}
<a href="{{ U_ACTION }}&amp;action=install&amp;extension={{ extension.composer_name|url_encode }}">{{ lang('INSTALL') }}</a>
{%- endif -%}
</span>
</td>
<td>{{ extension.version }}</td>
<td>{{ extension.description }}</td>