Removed beta msg, added toggle for github msg

This commit is contained in:
Andy Miller
2015-11-30 09:13:00 -07:00
parent 1e3800703e
commit 2e7fc67764
4 changed files with 9 additions and 6 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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">

View File

@@ -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 %}