Add a bit to views

This commit is contained in:
swag 2021-12-04 23:51:38 -05:00
parent e1c07606b5
commit 9c0d077266
3 changed files with 19 additions and 7 deletions

View File

@ -1,4 +1,3 @@
% layout 'default'; % layout 'default';
% title 'Welcome'; % title 'Home';
<h1>Welcome to the Mojolicious real-time web framework!</h1> <h2>Welcome to the Mojolicious real-time web framework!</h2>
<p>Test my <%= link_to(Model => 'test') %></p>

View File

@ -1,9 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><%= title %></title> <title>Guestbook-NG - <%= title %></title>
</head> </head>
<body> <body>
<%= content %> <center>
<h1><%= title %></h1>
<!-- Nav table -->
<table>
<tr>
<td><%= link_to Home => 'index' %></td>
<td>&nbsp;</td>
<td><%= link_to Test => 'test' %></td>
<td>&nbsp;</td>
<td><%= link_to Post => 'post' %></td>
</tr>
</table>
<%= content %>
</center>
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
% layout 'default'; % layout 'default';
% title 'test'; % title 'Test';
<h1>test page</h1> <h2>test page</h2>
<% if ($method eq 'POST') { %> <% if ($method eq 'POST') { %>
<p><%= $string %> at <%= $time =></p> <p><%= $string %> at <%= $time =></p>
<% } else { %> <% } else { %>