Support for Grav changelog in ‘info’ panel

This commit is contained in:
Andy Miller
2019-12-05 22:12:52 -07:00
parent 59ca1dc124
commit e6138debf6
3 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
## mm/dd/2019 ## mm/dd/2019
1. [](#new) 1. [](#new)
* Added ability to display **Changelogs** for `Plugins` and `Themes` * Added ability to display **Changelogs** for `Grav`, `Plugins` and `Themes`
# v1.10.0-rc.2 # v1.10.0-rc.2
## 12/04/2019 ## 12/04/2019

View File

@@ -81,6 +81,9 @@
{% if authorize(['admin.configuration_' ~ config_slug, 'admin.super']) %} {% if authorize(['admin.configuration_' ~ config_slug, 'admin.super']) %}
{% if isInfo %} {% if isInfo %}
<div id="phpinfo"> <div id="phpinfo">
<div style="margin-left:1.5rem">
<a class="button button-big" href="#" style="text-align: center;" data-remodal-target="changelog" data-remodal-changelog="{{ base_url_relative }}/changelog/type:plugins/slug:{{ plugin.slug }}"><i class="fa fa-binoculars"></i> View Grav Changelog</a>
</div>
{{ admin.phpinfo|raw }} {{ admin.phpinfo|raw }}
</div> </div>
{% else %} {% else %}
@@ -90,4 +93,5 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% include 'partials/modal-changes-detected.html.twig' %} {% include 'partials/modal-changes-detected.html.twig' %}
{% include 'partials/modal-changelog.html.twig' %}
{% endblock %} {% endblock %}

View File

@@ -125,4 +125,4 @@
{% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %} {% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %}
{% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %}
{% include 'partials/modal-reinstall-package.html.twig' with { type: 'theme', package: theme } %} {% include 'partials/modal-reinstall-package.html.twig' with { type: 'theme', package: theme } %}
{% include 'partials/modal-changelog.html.twig' with { package: plugin} %} {% include 'partials/modal-changelog.html.twig' with { package: theme} %}