transfer depuis gogs
This commit is contained in:
4
system/templates/default.html.twig
Normal file
4
system/templates/default.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Default output if no theme #}
|
||||
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
|
||||
<h1>{{ page.title() }}</h1>
|
||||
{{ page.content()|raw }}
|
1
system/templates/external.html.twig
Normal file
1
system/templates/external.html.twig
Normal file
@@ -0,0 +1 @@
|
||||
{# Default external template #}
|
4
system/templates/flex/404.html.twig
Normal file
4
system/templates/flex/404.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{% set item = collection ?? object %}
|
||||
{% set type = collection ? 'collection' : 'object' %}
|
||||
|
||||
ERROR: Layout '{{ layout }}' for flex {{ type }} '{{ item.flexType() }}' was not found.
|
@@ -0,0 +1,5 @@
|
||||
<h1>{{ directory.getTitle() }} <small>debug dump</small></h1>
|
||||
|
||||
{% for object in collection %}
|
||||
{% render object layout: layout %}
|
||||
{% endfor %}
|
4
system/templates/flex/_default/object/debug.html.twig
Normal file
4
system/templates/flex/_default/object/debug.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
<section>
|
||||
<h2>{{ object.key }}</h2>
|
||||
<pre>{{ object.jsonSerialize()|yaml_encode }}</pre>
|
||||
</section>
|
4
system/templates/modular/default.html.twig
Normal file
4
system/templates/modular/default.html.twig
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Default output if no theme #}
|
||||
<h3 style="color:red">ERROR: <code>{{ page.template() ~'.'~ page.templateFormat() ~".twig" }}</code> template not found for page: <code>{{ page.route() }}</code></h3>
|
||||
<h1>{{ page.title() }}</h1>
|
||||
{{ page.content()|raw }}
|
14
system/templates/partials/messages.html.twig
Normal file
14
system/templates/partials/messages.html.twig
Normal file
@@ -0,0 +1,14 @@
|
||||
{% set status_mapping = {'info':'green', 'error': 'red', 'warning': 'yellow'} %}
|
||||
|
||||
{% if grav.messages.all %}
|
||||
<div id="messages">
|
||||
{% for message in grav.messages.fetch %}
|
||||
|
||||
{% set scope = message.scope|e %}
|
||||
{% set color = status_mapping[scope] %}
|
||||
|
||||
<div class="notices {{ scope }} {{ color }}"><p>{{ message.message|raw }}</p></div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
3
system/templates/partials/metadata.html.twig
Normal file
3
system/templates/partials/metadata.html.twig
Normal file
@@ -0,0 +1,3 @@
|
||||
{% for meta in page.metadata %}
|
||||
<meta {% if meta.name %}name="{{ meta.name|e }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv|e }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset|e }}" {% endif %}{% if meta.property %}property="{{ meta.property|e }}" {% endif %}{% if meta.content %}content="{{ meta.content|raw }}" {% endif %}/>
|
||||
{% endfor %}
|
Reference in New Issue
Block a user