odoo/doc/howto/howto_website/basic-page

25 lines
778 B
Plaintext

# HG changeset patch
# Parent a76a9a0e0668f4191bdc383a0d4b3173f44b39b1
diff --git a/controllers/my_controller.py b/controllers/my_controller.py
--- a/controllers/my_controller.py
+++ b/controllers/my_controller.py
@@ -6,4 +6,16 @@ from openerp.addons.web.controllers impo
class my_controller(main.Home):
@http.route('/', auth='none')
def index(self):
- return "Hello, world!"
+ return """<!doctype html>
+<html>
+ <head>
+ <title>AcademyAcademy</title>
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
+ </head>
+ <body class="container">
+ <h1>Introduction to a thing</h1>
+ <h2>Course description</h2>
+ <p>Course introduction</p>
+ </body>
+</html>
+"""