-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathplugins.html.twig
More file actions
89 lines (81 loc) · 3.66 KB
/
Copy pathplugins.html.twig
File metadata and controls
89 lines (81 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{% extends '@forum/layout.html.twig' %}
{% block content %}
{% include '@forum/admin/menu.html.twig' %}
{{ fireHook('view.admin.plugins.start') }}
<div class="block">
<h2>Plugins</h2>
<div class="box">
<div class="inbox">
<table class="table">
<caption>{{ trans('Available plugins') }}</caption>
<thead>
<tr>
<th>{{ trans('Extension') }}</th>
<th>{{ trans('Description') }}</th>
</tr>
</thead>
<tbody>
{% for plugin in availablePlugins %}
<tr>
<td>
<strong>{{ plugin.title }}</strong>
<small>{{ plugin.version }}</small>
<div class="plugin-actions">
{% if plugin.name in activePlugins %}
<a href="{{ pathFor('deactivatePlugin', {'name': plugin.name}) }}">{{ trans('Deactivate') }}</a>
{% else %}
<a href="{{ pathFor('activatePlugin', {'name': plugin.name}) }}">{{ trans('Activate') }}</a>
<br>
<!-- <a href="{{ pathFor('uninstallPlugin', {'name': plugin.name}) }}">{{ trans('Uninstall') }}</a> -->
{% endif %}
</div>
</td>
<td>
{{ plugin.description|raw }}
<div class="plugin-details">
By {{ plugin.author.name }}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p style="text-align:right">{{ availablePlugins|length }} éléments</p>
</div>
<div class="inbox">
<table class="table">
<caption>{{ trans('Available plugins') }}</caption>
<thead>
<tr>
<th>{{ trans('Extension') }}</th>
<th>{{ trans('Description') }}</th>
</tr>
</thead>
<tbody>
{% for plugin in officialPlugins %}
<tr>
<td>
<strong>{{ plugin.title }}</strong>
<small>{{ plugin.version }}</small>
<div class="plugin-actions">
<a href="{{ pathFor('downloadPlugin', {'name': plugin.name, 'version': plugin.version}) }}">Download</a>
</div>
</td>
<td>
{{ plugin.description|raw }}
<div class="plugin-details">
By {{ plugin.author.name }}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p style="text-align:right">{{ officialPlugins|length }} éléments</p>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
{{ fireHook('view.admin.plugins.end') }}
{% endblock content %}