mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-06 15:43:01 +01:00
Removed beta msg, added toggle for github msg
This commit is contained in:
@@ -8,7 +8,7 @@ session:
|
||||
warnings:
|
||||
delete_page: true
|
||||
edit_mode: normal
|
||||
show_beta_msg: true
|
||||
show_github_msg: true
|
||||
google_fonts: true
|
||||
enable_auto_updates_check: true
|
||||
popularity:
|
||||
|
||||
@@ -71,8 +71,11 @@ form:
|
||||
help: Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.
|
||||
|
||||
show_beta_msg:
|
||||
type: hidden
|
||||
|
||||
show_github_msg:
|
||||
type: toggle
|
||||
label: Show Beta Message
|
||||
label: Show GitHub Link
|
||||
highlight: 1
|
||||
default: 1
|
||||
options:
|
||||
@@ -164,3 +167,5 @@ form:
|
||||
type: hidden
|
||||
label: Visitors history
|
||||
default: 20
|
||||
|
||||
|
||||
|
||||
@@ -132,9 +132,7 @@
|
||||
{% block content %}
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
{% if config.plugins.admin.show_beta_msg %}
|
||||
<div class="error alert"><i class="fa fa-exclamation-circle"></i> {{ 'PLUGIN_ADMIN.ADMIN_BETA_MSG'|tu }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if authorize(['admin.pages', 'admin.super']) %}
|
||||
<div id="latest">
|
||||
<div class="button-bar">
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<div class="admin-block default-box-shadow">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
{% if config.plugins.admin.show_beta_msg %}
|
||||
{% if config.plugins.admin.show_github_msg %}
|
||||
<div class="notice alert"><i class="fa fa-github"></i> <a href="https://github.com/getgrav/grav-plugin-admin/issues" target="_blank">{{ 'PLUGIN_ADMIN.ADMIN_REPORT_ISSUE'|tu }}</a></div>
|
||||
{% endif %}
|
||||
{% block content_bottom %}{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user