Added page legend #637

This commit is contained in:
Andy Miller
2016-06-02 12:34:02 -06:00
parent 45e9e77179
commit 2bbcc16a90
7 changed files with 34 additions and 6 deletions

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

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

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