Error template

This commit is contained in:
John O'Nolan 2020-07-17 00:36:33 +07:00
parent 9c5f13c925
commit 43e366a340

View file

@ -1,19 +1,23 @@
{{!< default}} {{!< default}}
<h1>{{statusCode}}</h1> <header class="gh-header">
<p>{{message}}</p> <h1>{{statusCode}}</h1>
<p>{{message}}</p>
</header>
{{#if errorDetails}} <section class="gh-content">
<ul> {{#if errorDetails}}
{{#foreach errorDetails}} <ul>
<li> {{#foreach errorDetails}}
<h5>{{{rule}}}</h5> <li>
{{#foreach failures}} <h5>{{{rule}}}</h5>
<span><strong>Ref:</strong> {{ref}}</span><br> {{#foreach failures}}
<span><strong>Message:</strong> {{message}}</span> <span><strong>Ref:</strong> {{ref}}</span><br>
<span><strong>Message:</strong> {{message}}</span>
{{/foreach}}
</li>
{{/foreach}} {{/foreach}}
</li> </ul>
{{/foreach}} {{/if}}
</ul> </section>
{{/if}}