Commit 454f5105 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Remove the controller default/documentations and simplify default/index.

parent 1d8583d4
""" Controllers """
def documentations():
"""Main controller to give access to the documentation.
"""
return dict()
# -*- coding: utf-8 -*-
""" Controllers
"""
@auth.requires(True, requires_login=not request.is_local)
def index():
"""Main Controller to run the application launching the plugin dbui.
......@@ -26,13 +21,7 @@ def index():
else:
session.role = ADMIN
if 'debug' in request.vars:
del request.vars['debug']
url = URL('plugin_dbui', 'debug', args=request.args, vars=request.vars)
else:
url = URL('plugin_dbui', 'index', args=request.args, vars=request.vars)
url = URL('plugin_dbui', 'index', args=request.args, vars=request.vars)
return redirect(url)
......
......@@ -90,27 +90,27 @@ class EvtUiViewport(object):
renderer="html",
url=URL("plugin_dbui", "about"))
aboutLeaf = Panel(loader=loader, autoScroll=True)
about_panel = Panel(loader=loader, autoScroll=True)
loader = dict(autoLoad=True,
renderer="html",
url=URL("default", "documentations"))
url=URL("plugin_dbui", "documentations_list"))
docLeaf = Panel(loader=loader, plugins=["pPanelLoaderException"])
doc_panel = Panel(loader=loader, plugins=["pPanelLoaderException"])
loader = dict(autoLoad=True,
renderer="html",
scripts=True,
url=URL("plugin_dbui", "versions"))
versionLeaf = Panel(loader=loader, plugins=["pPanelLoaderException"])
version_panel = Panel(loader=loader, plugins=["pPanelLoaderException"])
node = Node(T("Help"))
add_child = node.add_child
add_child(T("about"), aboutLeaf)
add_child(T("documentations"), docLeaf)
add_child(T("versions"), versionLeaf)
add_child(T("about"), about_panel)
add_child(T("documentations"), doc_panel)
add_child(T("versions"), version_panel)
node.sort_children()
......
<h2 class="dbui-h2 dbui-small-cap">{{=T("Documentations")}}</h2>
<p class="dbui-p dbui-small-cap" style="margin-top: 5ex">
1. {{=T("For users")}}
</p>
<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_events_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>
<p class="dbui-p dbui-small-cap" style="margin-top: 5ex">
2. {{=T("For developpers")}}
</p>
<ul>
<li class="dbui-p">
<a href="/{{=request.application}}/static/docs/api/index.html" target="_blank">
{{=request.application}} python API
</a>
</li>
<li class="dbui-p">
<a href="/{{=request.application}}/static/docs/jsduck/index.html" target="_blank">
{{=request.application}} javascript API
</a>
</li>
</ul>
<ul>
<li class="dbui-p">
<a href="https://marprod.in2p3.fr/plugin_dbui_book" target="_blank">
plugin_dbui reference manual
</a>
</li>
<li class="dbui-p">
<a href="/{{=request.application}}/static/plugin_dbui/docs/api/index.html" target="_blank">
plugin_dbui python API
</a>
</li>
<li class="dbui-p">
<a href="/{{=request.application}}/static/plugin_dbui/docs/jsduck/index.html" target="_blank">
plugin_dbui javascript API
</a>
</li>
</ul>
<ul>
<li class="dbui-p">
<a href="http://web2py.com/book" target="_blank">
Web2py reference manual
</a>
</li>
<li class="dbui-p">
<a href="http://docs-origin.sencha.com/extjs/4.2.1/#!/api" target="_blank">
Ext JS 4.2.1 javasript API
</a>
</li>
<li class="dbui-p">
<a href="http://pandas.pydata.org/pandas-docs/stable/" target="_blank">
Pandas data analysis toolkit
</a>
</li>
</ul>
<ul>
<li class="dbui-p">
<a href="http://sphinx-doc.org/" target="_blank">
Sphinx documentation generator
</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