forked from mirror/pkger
65 lines
1.8 KiB
HTML
65 lines
1.8 KiB
HTML
|
<header>
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-1 col-sm-2 col-xs-2 logo">
|
||
|
<a href="<%= rootPath() %>"><img src="<%= rootPath() %>assets/images/logo.svg" alt=""></a>
|
||
|
</div>
|
||
|
<div class="col-md-9 col-sm-9 col-xs-10 titles">
|
||
|
<h1><%= t("welcome_greeting") %></h1>
|
||
|
<h2>
|
||
|
<a href="https://github.com/gobuffalo/buffalo"><i class="fab fa-github" aria-hidden="true"></i> https://github.com/gobuffalo/buffalo</a>
|
||
|
</h2>
|
||
|
<h2 class="documentation">
|
||
|
<a href="http://gobuffalo.io/"><i class="fa fa-book" aria-hidden="true"></i> Documentation</a>
|
||
|
</h2>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</header>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="subtitle">
|
||
|
<div class="container">
|
||
|
<h3>Defined Routes</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="table-responsive">
|
||
|
<table class="table table-striped">
|
||
|
<thead>
|
||
|
<tr text-align="left">
|
||
|
<th class="centered">METHOD</th>
|
||
|
<th>PATH</th>
|
||
|
<th>NAME</th>
|
||
|
<th>HANDLER</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
|
||
|
<%= for (r) in routes { %>
|
||
|
<tr>
|
||
|
<td class="centered">
|
||
|
<%= r.Method %>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= if (r.Method != "GET" || r.Path ~= "{") {
|
||
|
return r.Path
|
||
|
} else {
|
||
|
return linkTo(r.Path, {body: r.Path})
|
||
|
} %>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= r.PathName %>
|
||
|
</td>
|
||
|
<td><code><%= r.HandlerName %></code></td>
|
||
|
</tr>
|
||
|
<% } %>
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="foot"> <span> Powered by <a href="http://gobuffalo.io/">gobuffalo.io</a></span> </div>
|