[SNIPPET] Improved display of EXT version Check

Mixed forum with phpBB code snippets
Guides and styles

[SNIPPET] Improved display of EXT version Check

Post by Stoker »

Improved display of EXT version Check

A single core edit gives an improved display of "Up to Date" and "Out of date" extensions.

Open: /adm/style/acp_ext_list.html

Find this part:

Code: Select all

<td><strong title="{{ data.NAME }}">{{ data.META_DISPLAY_NAME }}</strong>
					{% if list == 'enabled' %}
						{% EVENT acp_ext_list_enabled_name_after %}
					{% elseif list == 'disabled' %}
						{% EVENT acp_ext_list_disabled_name_after %}
					{% elseif list == 'not_installed' %}
						{% EVENT acp_ext_list_not_installed_name_after %}
					{% endif %}
				</td>
				<td style="text-align: center;">
					{% if data.S_VERSIONCHECK %}
					<strong class="{% if data.S_UP_TO_DATE %}current-ext{% else %}outdated-ext{% endif %}">{{ data.META_VERSION }}</strong>
					{% if not data.S_UP_TO_DATE %}<i class="fa fa-exclamation-circle outdated-ext" aria-hidden="true"></i>{% endif %}
					{% else %}
					{{ data.META_VERSION }}
					{% endif %}
				</td>
Replace with:

Code: Select all

<td>
					{% if data.S_VERSIONCHECK %}
					<strong title="{{ data.NAME }}" class="{% if data.S_UP_TO_DATE %}current-ext{% else %}outdated-ext{% endif %}">{{ data.META_DISPLAY_NAME }}</strong>
					{% if not data.S_UP_TO_DATE %}<i class="fa fa-exclamation outdated-ext" aria-hidden="true"></i>{% else %}<i class="fa fa-check current-ext" aria-hidden="true"></i>{% endif %}
					{% else %}
					<strong title="{{ data.NAME }}">{{ data.META_DISPLAY_NAME }}
					{% endif %}
					{% if list == 'enabled' %}
						{% EVENT acp_ext_list_enabled_name_after %}
					{% elseif list == 'disabled' %}
						{% EVENT acp_ext_list_disabled_name_after %}
					{% elseif list == 'not_installed' %}
						{% EVENT acp_ext_list_not_installed_name_after %}
					{% endif %}
				</td>
				<td style="text-align: center;">
					{% if data.S_VERSIONCHECK %}
					<strong class="{% if data.S_UP_TO_DATE %}current-ext{% else %}outdated-ext{% endif %}">{{ data.META_VERSION }}</strong>
					{% if not data.S_UP_TO_DATE %}<i class="fa fa-exclamation outdated-ext" aria-hidden="true"></i>{% else %}<i class="fa fa-check current-ext" aria-hidden="true"></i>{% endif %}
					{% else %}
					{{ data.META_VERSION }}
					{% endif %}
				</td>

The result:
acp_ext.png
You do not have the required permissions to view the files attached to this post.