mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Added page legend #637
This commit is contained in:
@@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
1. [](#improved)
|
1. [](#improved)
|
||||||
* Cleaned up the Page Preview CSS to make it more 'standard' [#634](https://github.com/getgrav/grav-plugin-admin/issues/634)
|
* Cleaned up the Page Preview CSS to make it more 'standard' [#634](https://github.com/getgrav/grav-plugin-admin/issues/634)
|
||||||
|
* Added a legend with the Page colors explained [#637](https://github.com/getgrav/grav-plugin-admin/issues/637)
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fixed "Data type `System` doesn't exist!" error when activating a theme [#635](https://github.com/getgrav/grav-plugin-admin/issues/635)
|
* Fixed "Data type `System` doesn't exist!" error when activating a theme [#635](https://github.com/getgrav/grav-plugin-admin/issues/635)
|
||||||
|
* Fixed issue with custom media types not deleting on save [#633](https://github.com/getgrav/grav-plugin-admin/issues/633)
|
||||||
* Fixed issue when saving `List` field type in plugins + pages
|
* Fixed issue when saving `List` field type in plugins + pages
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -560,3 +560,4 @@ PLUGIN_ADMIN:
|
|||||||
THUMB: "Thumb"
|
THUMB: "Thumb"
|
||||||
TYPE: "Type"
|
TYPE: "Type"
|
||||||
FILE_EXTENSION: "File Extension"
|
FILE_EXTENSION: "File Extension"
|
||||||
|
LEGEND: "Page Legend"
|
||||||
|
|||||||
2
themes/grav/css-compiled/template.css
vendored
2
themes/grav/css-compiled/template.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -99,8 +99,19 @@
|
|||||||
&.modular {
|
&.modular {
|
||||||
color: #9055AF;
|
color: #9055AF;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#pages-legend {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
h2, ul, li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-right: 0.75rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -270,9 +270,12 @@
|
|||||||
<span class="button button-x-small" data-page-toggleall="collapse"><i class="fa fa-fw fa-minus-circle"></i> {{ "PLUGIN_ADMIN.COLLAPSE_ALL"|tu }}</span>
|
<span class="button button-x-small" data-page-toggleall="collapse"><i class="fa fa-fw fa-minus-circle"></i> {{ "PLUGIN_ADMIN.COLLAPSE_ALL"|tu }}</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<ul class="pages-list depth-0">
|
<div class="pages-list">
|
||||||
|
<ul class="depth-0">
|
||||||
{{ _self.loop(pages, 0, _context) }}
|
{{ _self.loop(pages, 0, _context) }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% include 'partials/page-legend.html.twig' %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
11
themes/grav/templates/partials/page-legend.html.twig
Normal file
11
themes/grav/templates/partials/page-legend.html.twig
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% set legend = {'VISIBLE':'', 'NON_ROUTABLE':'not-routable', 'NON_VISIBLE':'not-visible', 'MODULAR':'modular'} %}
|
||||||
|
<div id="pages-legend">
|
||||||
|
<strong>{{ 'PLUGIN_ADMIN.LEGEND'|tu }}:</strong>
|
||||||
|
<ul>
|
||||||
|
{% for key, class in legend %}
|
||||||
|
<li><i class="page-icon fa fa-fw fa-circle-o {{ class }}"></i> {{ ('PLUGIN_ADMIN.'~key)|tu }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user