2
0
Fork 0
tcrud/lib/www_views/node-ff-tcrud/uiAngularServerRoutes/thtml/routes.ejs

26 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2017-06-10 14:53:29 +00:00
<h2>Server Routes</h2>
<p>This page show all the nodejs express routes.</p>
<div class="">
<% if (query.group1 && query.group2) { %>
<div class="col-lg-6">
<% query.group1.split(',').forEach(function (routeGroup) { %>
<%- include('routes-group', {routeGroup: routeGroup}); %>
<% }) %>
</div>
<div class="col-lg-6">
<% query.group2.split(',').forEach(function (routeGroup) { %>
<%- include('routes-group', {routeGroup: routeGroup}); %>
<% }) %>
</div>
<% } else if (query.group1) { %>
<div class="col-lg-12">
<% query.group1.split(',').forEach(function (routeGroup) { %>
<%- include('routes-group', {routeGroup: routeGroup}); %>
<% }) %>
</div>
<% } else { %>
<div class="col-lg-12">
<%- include('routes-group', {routeGroup: 'all'}); %>
</div>
<% } %>
</div>