Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
cf4dcd1a
Commit
cf4dcd1a
authored
May 05, 2014
by
Marc Duez
Browse files
server: add help view controller
parent
71e14050
Changes
3
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/Vidjil/controllers/default.py
View file @
cf4dcd1a
...
...
@@ -21,6 +21,13 @@ def index():
response
.
flash
=
T
(
"Welcome to Vidjil!"
)
return
dict
(
message
=
T
(
'hello world'
))
def
help
():
if
request
.
env
.
http_origin
:
response
.
headers
[
'Access-Control-Allow-Origin'
]
=
request
.
env
.
http_origin
response
.
headers
[
'Access-Control-Allow-Credentials'
]
=
'true'
response
.
headers
[
'Access-Control-Max-Age'
]
=
86400
return
dict
(
message
=
T
(
'help i
\'
m lost'
))
def
run_request
():
import
gluon.contrib.simplejson
...
...
server/web2py/applications/Vidjil/views/db_layout.html
View file @
cf4dcd1a
...
...
@@ -6,6 +6,8 @@
- - -
<a
class=
"button"
onclick=
"db.call('group/index');"
>
groups
</a>
<a
class=
"button"
onclick=
"db.call('user/index');"
>
users
</a>
- - -
<a
class=
"button"
onclick=
"db.call('default/help');"
>
help
</a>
</div>
<div
id=
"db_auth"
>
...
...
server/web2py/applications/Vidjil/views/default/user.html
View file @
cf4dcd1a
{{extend 'db_layout.html'}}
<h2>
{{=T( request.args(0).replace('_',' ').capitalize() )}}
</h2>
<div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment