1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

feat(admin-plugin): show message on plugins page if no plugins installed #294

This commit is contained in:
Awilum
2019-11-14 01:04:21 +03:00
parent 0cd0747812
commit 8df7c73fef
2 changed files with 8 additions and 0 deletions

View File

@@ -264,6 +264,7 @@ admin_icon: "Icon"
admin_menu: "Menu"
admin_seo: "Seo"
admin_main: "Main"
admin_you_have_no_plugins: "You have no plugins"
admin_help_text_for_settings_site_title_label: "Title for your site."
admin_help_text_for_settings_site_robots_label: "Robots settings for your site."
admin_help_text_for_settings_site_keywords_label: "Keywords for your site."

View File

@@ -1,6 +1,7 @@
{% extends "plugins/admin/views/partials/base.html" %}
{% block content %}
{% if (plugins_list|length > 0) %}
<table class="table no-margin">
<tbody>
{% for key, plugin in plugins_list %}
@@ -35,4 +36,10 @@
{% endfor %}
</tbody>
</table>
{% else %}
<div class="empty-list-message">
<i class="fas fa-list"></i>
<h3>{{ tr('admin_you_have_no_plugins') }}</h3>
</div>
{% endif %}
{% endblock %}