mirror of
https://github.com/kataras/iris.git
synced 2026-01-06 03:27:27 +00:00
Update the _examples/mvc/login example - add a Path property at mvc.Response and add a context.Proceed helper function
Former-commit-id: b898901fe4a324e888a6e09c93530cf7a551cf2a
This commit is contained in:
15
_examples/mvc/login/web/views/shared/error.html
Normal file
15
_examples/mvc/login/web/views/shared/error.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<h1>Error.</h1>
|
||||
<h2>An error occurred while processing your request.</h2>
|
||||
|
||||
<h3>{{.Message}}</h3>
|
||||
|
||||
<footer>
|
||||
<h2>Sitemap</h2>
|
||||
<a href="http://localhost:8080/user/register">/user/register</a><br/>
|
||||
<a href="http://localhost:8080/user/login">/user/login</a><br/>
|
||||
<a href="http://localhost:8080/user/logout">/user/logout</a><br/>
|
||||
<a href="http://localhost:8080/user/me">/user/me</a><br/>
|
||||
<h3>requires authentication</h3><br/>
|
||||
<a href="http://localhost:8080/users">/users</a><br/>
|
||||
<a href="http://localhost:8080/users/1">/users/{id}</a><br/>
|
||||
</footer>
|
||||
12
_examples/mvc/login/web/views/shared/layout.html
Normal file
12
_examples/mvc/login/web/views/shared/layout.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
<link rel="stylesheet" type="text/css" href="/public/css/site.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ yield }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user