MobileBlur

Diff
Login

Differences From Artifact [cbe8ab5af6]:

To Artifact [3ef86ec614]:


     3      3   # ###########################################################
     4      4   
     5      5   _a = request.application
     6      6   _c = request.controller
     7      7   _f = request.function
     8      8   response.title = '%s %s' % (_f, '/'.join(request.args))
     9      9   response.subtitle = 'admin'
    10         -response.menu = [(T('site'), _f == 'site', URL(_a,'default','site'))]
           10  +response.menu = [(T('Site'), _f == 'site', URL(_a,'default','site'))]
    11     11   
    12     12   if request.args:
    13     13       _t = request.args[0]
    14         -    response.menu.append((T('edit'), _c == 'default' and _f == 'design',
           14  +    response.menu.append((T('Edit'), _c == 'default' and _f == 'design',
    15     15                            URL(_a,'default','design',args=_t)))
    16         -    response.menu.append((T('about'), _c == 'default' and _f == 'about',
           16  +    response.menu.append((T('About'), _c == 'default' and _f == 'about',
    17     17                            URL(_a,'default','about',args=_t)))
    18         -    response.menu.append((T('errors'), _c == 'default' and _f == 'errors',
           18  +    response.menu.append((T('Errors'), _c == 'default' and _f == 'errors',
    19     19                            URL(_a,'default','errors',args=_t)))
    20         -
    21         -    response.menu.append((T('versioning'),
           20  +    response.menu.append((T('Versioning'),
    22     21                             _c == 'mercurial' and _f == 'commit',
    23     22                             URL(_a,'mercurial','commit',args=_t)))
    24     23   
    25     24   if not session.authorized:
    26         -    response.menu = [(T('login'), True, '')]
           25  +    response.menu = [(T('Login'), True, '')]
    27     26   else:
    28         -    response.menu.append((T('logout'), False,
           27  +    response.menu.append((T('Logout'), False,
    29     28                             URL(_a,'default',f='logout')))
    30     29   
    31         -response.menu.append((T('help'), False, URL('examples','default','index')))
    32         -
           30  +if os.path.exists('applications/examples'):
           31  +    response.menu.append((T('Help'), False, URL('examples','default','index')))
           32  +else:
           33  +    response.menu.append((T('Help'), False, 'http://web2py.com/examples'))