Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* files I forgot to check in earlier
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% macro tablePlugins(pluginsInfo, token_auth, isTheme) %} | ||
|
||
<div class='entityContainer'> | ||
<table class="dataTable entityTable"> | ||
<thead> | ||
<tr> | ||
<th>{% if isTheme %}{{ 'CorePluginsAdmin_Theme'|translate }}{% else %}{{ 'CorePluginsAdmin_Plugin'|translate }}{% endif %}</th> | ||
<th class="num">{{ 'CorePluginsAdmin_Version'|translate }}</th> | ||
<th>{{ 'General_Description'|translate }}</th> | ||
<th class="status">{{ 'CorePluginsAdmin_Status'|translate }}</th> | ||
<th class="action-links">{{ 'CorePluginsAdmin_Action'|translate }}</th> | ||
</tr> | ||
</thead> | ||
<tbody id="plugins"> | ||
{% for name,plugin in pluginsInfo %} | ||
{% if plugin.alwaysActivated is defined and not plugin.alwaysActivated %} | ||
<tr {% if plugin.activated %}class="highlighted"{% endif %}> | ||
<td class="name"> | ||
{% if plugin.info.homepage is defined %} | ||
<a title="{{ 'CorePluginsAdmin_PluginHomepage'|translate }}" href="{{ plugin.info.homepage }}" target="_blank"> | ||
{% endif %} | ||
{{ name }} | ||
{% if plugin.info.homepage is defined %}</a>{% endif %} | ||
</td> | ||
<td class="vers">{{ plugin.info.version }}</td> | ||
<td class="desc"> | ||
{{ plugin.info.description|raw|nl2br }} | ||
{% if plugin.info.license is defined %} | ||
({% 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 %} | ||
{% endif %} | ||
{% if plugin.info.author is defined %} | ||
<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 %} | ||
.</cite> | ||
{% endif %} | ||
</td> | ||
<td class="status"> | ||
{% if plugin.activated %} | ||
{{ 'CorePluginsAdmin_Active'|translate }} | ||
{% else %} | ||
{{ 'CorePluginsAdmin_Inactive'|translate }} | ||
{% endif %} | ||
</td> | ||
|
||
<td class="togl action-links"> | ||
{% if plugin.activated %} | ||
<a href='index.php?module=CorePluginsAdmin&action=deactivate&pluginName={{ name }}&token_auth={{ token_auth }}'>{{ 'CorePluginsAdmin_Deactivate'|translate }}</a> | ||
{% else %} | ||
<a href='index.php?module=CorePluginsAdmin&action=activate&pluginName={{ name }}&token_auth={{ token_auth }}'>{{ 'CorePluginsAdmin_Activate'|translate }}</a> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends 'admin.twig' %} | ||
|
||
{% import '@CorePluginsAdmin/macros.twig' as plugins %} | ||
|
||
{% block content %} | ||
<div style="max-width:980px;"> | ||
|
||
<h2>{{ 'CorePluginsAdmin_ThemesManagement'|translate }}</h2> | ||
|
||
<p>{{ 'CorePluginsAdmin_ThemesDescription'|translate }}</p> | ||
|
||
{{ plugins.tablePlugins(pluginsInfo, token_auth, true) }} | ||
|
||
</div> | ||
{% endblock %} |