1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

feat(admin-plugin): add ability to set individual icons for plugins #255 #255

This commit is contained in:
Awilum
2019-10-10 19:57:10 +03:00
parent 4bdcebf6a5
commit 5086758cb0
3 changed files with 11 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
name: Admin
version: 0.0.0
description: Admin plugin for Flextype
icon: fab fa-fort-awesome
author:
name: Sergey Romanenko
email: hello@romanenko.digital

View File

@@ -2,17 +2,17 @@
{% block content %}
<table class="table no-margin">
<thead>
<tr>
<th>{{ tr('admin_name') }}</th>
<th></th>
<th width="90" class="text-right">{{ tr('admin_status') }}</th>
</tr>
</thead>
<tbody>
{% for key, plugin in plugins_list %}
<tr>
<td>{{ plugin.name }}</td>
<td style="width: 50px; padding-right: 10px; text-align:center;">
{% if plugin.icon %}
<i class="{{ plugin.icon }}"></i>
{% else %}
<i class="fas fa-plug"></i>
{% endif %}
</td>
<td style="padding-left:0px;">{{ plugin.name }}</td>
<td class="text-right">
<a href="javascript:;" class="btn js-plugins-info" data-toggle="modal" data-target="#pluginInfoModal"
data-name="{{ plugin.name }}"
@@ -26,7 +26,7 @@
data-license="{{ plugin.license }}"
>{{ tr('admin_info') }}</a>
</td>
<td class="text-right">
<td class="text-right" style="width: 50px;">
<div class="form-group no-margin">
<span class="switch switch-sm">
<input id="switch-sm-{{ key }}"

View File

@@ -1,6 +1,7 @@
name: Site
version: 0.0.0
description: Site plugin for Flextype
icon: fas fa-globe
author:
name: Sergey Romanenko
email: hello@romanenko.digital