Commit 122d7111 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the node 'guides' in the viewport.

parent 988797f5
""" Main Controller to run the application with the user privileges.
"""
def index():
session.role = ''
if 'debug' in request.vars:
return LOAD('plugin_dbui', 'debug', vars=request.vars)
return LOAD('plugin_dbui', 'index', vars=request.vars)
def guides():
return dict()
def user():
"""exposes:
......
......@@ -159,7 +159,8 @@
'Data publications': 'Les données des publications',
'database': 'database',
'database %s select': 'database %s select',
'database schema': 'schéma de la base de donnée',
'Database schema': 'Schéma de la base de données',
'database schema': 'schéma de la base de données',
'Date': 'Date',
'Date of defense: 13 Dec 2011': 'Date de la soutenance: 13 Dec 2011',
'Date of submission to a publisher: 2011-12-13 or 2011-12': 'Date de soumission à un éditeur : 2011-12-13 ou 2011-12',
......@@ -267,6 +268,8 @@
'Group ID': 'Group ID',
'Group uniquely assigned to user %(id)s': 'Group uniquely assigned to user %(id)s',
'groups': 'groupes',
'Guides': 'Guides',
'guides': 'guides',
'Harvest': 'Moissonner',
'Harvester': 'Moissonneur',
'Harvester parameters not defined in the database.': 'Les paramètres du moissoneur ne sont pas définis dans la base de données.',
......@@ -658,6 +661,7 @@
'User %(id)s Password reset': 'User %(id)s Password reset',
'User %(id)s Profile updated': 'User %(id)s Profile updated',
'User %(id)s Registered': 'User %(id)s Registered',
'User guides': 'Guides utilisateurs',
'User ID': 'User ID',
'users': 'utilisateurs',
'Users can login when the value is equal to yes or true.': 'Les utilisateurs peuvent se logger quand cette valuer est égale à yes ou true.',
......
......@@ -167,6 +167,13 @@ loader = dict(autoLoad=True,
docLeaf = Panel(loader=loader, plugins=['pPanelLoaderException'], autoScroll=True)
loader = dict(autoLoad=True,
renderer='html',
scripts=True,
url=URL('default', 'guides'))
guidesLeaf = Panel(loader=loader, plugins=['pPanelLoaderException'], autoScroll=True)
loader = dict(autoLoad=True,
renderer='html',
scripts=True,
......@@ -176,6 +183,7 @@ versionLeaf = Panel(loader=loader, plugins=['pPanelLoaderException'])
helpNode = Node(T('Help'))
helpNode.add_child(T('about'), aboutLeaf)
helpNode.add_child(T('guides'), guidesLeaf)
helpNode.add_child(T('versions'), versionLeaf)
if session.role == ADMIN:
......
<h2 class="dbui-h2 dbui-small-cap">{{=T("Guides")}}</h2>
<ul>
<li class="dbui-p">
{{=T("User guides")}} (
<a href="/{{=request.application}}/static/docs/user/index.html" target="_blank">
html
</a>,
<a href="/{{=request.application}}/static/docs/pdf/track_publications_user.pdf" target="_blank">
pdf
</a>)
</li>
<li class="dbui-p">
<a href="/{{=request.application}}/static/docs/database.png" target="_blank">
{{=T("Database schema")}}
</a>
</li>
<li class="dbui-p">
<a href="/{{=request.application}}/static/CHANGELOG" target="_blank">
Change Log
</a>
</li>
</ul>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment