Add number of media in date filter

This commit is contained in:
Flavio Copes
2017-05-31 19:27:31 +02:00
parent bfa5cda49a
commit af73f4f7a2

View File

@@ -15,7 +15,7 @@
{% for year, months in admin.filesDates %}
<optgroup label="{{year}}">
{% for month, number in months %}
<option value="{{year}}-{{month}}" {% if grav.uri.param('date') == year~'-'~month %}selected{% endif %}>{{ month }}</option>
<option value="{{year}}-{{month}}" {% if grav.uri.param('date') == year~'-'~month %}selected{% endif %}>{{ month }} ({{number}})</option>
{% endfor %}
</optgroup>
{% endfor %}