- First commit, routes and database builder are usable

This commit is contained in:
mcndave committed 2020-10-20 14:01:34 +00:00
commit 5f6ce82fd2
23 files changed
+787

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
{% extends "lean/base/console/layout" %}
{% language.set "lean.request" %}
{% title _("title") %}
{% section "header" %}
<div class="page-title">{% _ "page-title" %}</div>
{% endsection %}
{% section "content" %}
<section>
<header>
<h1>{% _ 'route.header' %}</h1>
</header>
<article class="routes">
{% if $routes %}
<strong class="grid">
<div class="col route-name">{% _ 'route.name' %}</div>
<div class="col route-uri">{% _ 'route.uri' %}</div>
<div class="col route-methods">{% _ 'route.methods' %}</div>
<div class="col controller-method">{% _ 'route.target' %}</div>
</strong>
{% foreach $routes as $name => $route %}
<div class="grid">
<strong class="col route-name">{{ $name }}</strong>
<div class="col route-uri">{{ $route['route'] }}</div>
<div class="col route-methods">{{ implode(', ', $route['routeMethods']) }}</div>
<div class="col controller-method">
<span class="class">{{ $route['class'] }}</span>::<span>{{ $route['classMethod'] }}</span>
</div>
</div>
{% endforeach %}
{% else %}
{% _ 'routeless' %}
{% endif %}
</article>
</section>
<style>
.routes strong.grid {background:#172842;color:#eeffee}
.routes .grid {padding:0.66rem 0.3rem}
.routes .grid strong {color:#444}
.routes .grid:nth-child(even) {background: #e3e3e3 }
</style>
{% endsection %}