source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/applications/welcome/models/menu.py

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 5.1 KB
Line 
1# -*- coding: utf-8 -*-
2# this file is released under public domain and you can use without limitations
3
4# ----------------------------------------------------------------------------------------------------------------------
5# this is the main application menu add/remove items as required
6# ----------------------------------------------------------------------------------------------------------------------
7
8response.menu = [
9    (T('Home'), False, URL('default', 'index'), [])
10]
11
12# ----------------------------------------------------------------------------------------------------------------------
13# provide shortcuts for development. you can remove everything below in production
14# ----------------------------------------------------------------------------------------------------------------------
15
16if not configuration.get('app.production'):
17    _app = request.application
18    response.menu += [
19        (T('My Sites'), False, URL('admin', 'default', 'site')),
20        (T('This App'), False, '#', [
21            (T('Design'), False, URL('admin', 'default', 'design/%s' % _app)),
22            (T('Controller'), False,
23             URL(
24                 'admin', 'default', 'edit/%s/controllers/%s.py' % (_app, request.controller))),
25            (T('View'), False,
26             URL(
27                 'admin', 'default', 'edit/%s/views/%s' % (_app, response.view))),
28            (T('DB Model'), False,
29             URL(
30                 'admin', 'default', 'edit/%s/models/db.py' % _app)),
31            (T('Menu Model'), False,
32             URL(
33                 'admin', 'default', 'edit/%s/models/menu.py' % _app)),
34            (T('Config.ini'), False,
35             URL(
36                 'admin', 'default', 'edit/%s/private/appconfig.ini' % _app)),
37            (T('Layout'), False,
38             URL(
39                 'admin', 'default', 'edit/%s/views/layout.html' % _app)),
40            (T('Stylesheet'), False,
41             URL(
42                 'admin', 'default', 'edit/%s/static/css/web2py-bootstrap3.css' % _app)),
43            (T('Database'), False, URL(_app, 'appadmin', 'index')),
44            (T('Errors'), False, URL(
45                'admin', 'default', 'errors/' + _app)),
46            (T('About'), False, URL(
47                'admin', 'default', 'about/' + _app)),
48        ]),
49        ('web2py.com', False, '#', [
50            (T('Download'), False,
51             'http://www.web2py.com/examples/default/download'),
52            (T('Support'), False,
53             'http://www.web2py.com/examples/default/support'),
54            (T('Demo'), False, 'http://web2py.com/demo_admin'),
55            (T('Quick Examples'), False,
56             'http://web2py.com/examples/default/examples'),
57            (T('FAQ'), False, 'http://web2py.com/AlterEgo'),
58            (T('Videos'), False,
59             'http://www.web2py.com/examples/default/videos/'),
60            (T('Free Applications'),
61             False, 'http://web2py.com/appliances'),
62            (T('Plugins'), False, 'http://web2py.com/plugins'),
63            (T('Recipes'), False, 'http://web2pyslices.com/'),
64        ]),
65        (T('Documentation'), False, '#', [
66            (T('Online book'), False, 'http://www.web2py.com/book'),
67            (T('Preface'), False,
68             'http://www.web2py.com/book/default/chapter/00'),
69            (T('Introduction'), False,
70             'http://www.web2py.com/book/default/chapter/01'),
71            (T('Python'), False,
72             'http://www.web2py.com/book/default/chapter/02'),
73            (T('Overview'), False,
74             'http://www.web2py.com/book/default/chapter/03'),
75            (T('The Core'), False,
76             'http://www.web2py.com/book/default/chapter/04'),
77            (T('The Views'), False,
78             'http://www.web2py.com/book/default/chapter/05'),
79            (T('Database'), False,
80             'http://www.web2py.com/book/default/chapter/06'),
81            (T('Forms and Validators'), False,
82             'http://www.web2py.com/book/default/chapter/07'),
83            (T('Email and SMS'), False,
84             'http://www.web2py.com/book/default/chapter/08'),
85            (T('Access Control'), False,
86             'http://www.web2py.com/book/default/chapter/09'),
87            (T('Services'), False,
88             'http://www.web2py.com/book/default/chapter/10'),
89            (T('Ajax Recipes'), False,
90             'http://www.web2py.com/book/default/chapter/11'),
91            (T('Components and Plugins'), False,
92             'http://www.web2py.com/book/default/chapter/12'),
93            (T('Deployment Recipes'), False,
94             'http://www.web2py.com/book/default/chapter/13'),
95            (T('Other Recipes'), False,
96             'http://www.web2py.com/book/default/chapter/14'),
97            (T('Helping web2py'), False,
98             'http://www.web2py.com/book/default/chapter/15'),
99            (T("Buy web2py's book"), False,
100             'http://stores.lulu.com/web2py'),
101        ]),
102        (T('Community'), False, None, [
103            (T('Groups'), False,
104             'http://www.web2py.com/examples/default/usergroups'),
105            (T('Twitter'), False, 'http://twitter.com/web2py'),
106            (T('Live Chat'), False,
107             'http://webchat.freenode.net/?channels=web2py'),
108        ]),
109    ]
110
Note: See TracBrowser for help on using the repository browser.