Commit aa86c7d2 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish views for lists, metris and graphs.

parent dd6e98f8
......@@ -429,6 +429,7 @@
'organisations': 'organisations',
'organizations': 'organizations',
'Origin': 'Origine',
'Page generated in %s seconds': 'Page générée en %s secondes',
'pages': 'pages',
'Pages': 'Pages',
'Pages range is not defined': 'Les Pages ne sont pas définies',
......
......@@ -14,17 +14,14 @@
<img src="data:image/svg+xml;utf8,{{=data}}" height=400></img>
{{
from datetime import datetime
#
# the footer, processing time of the request
#
delta = (datetime.now()-request.now).total_seconds()
delta = T('Processing time %s seconds') % round(delta, 2)
style = ["font-size: 10px;",
"margin-left: 10px;",
"margin-bottom: 3ex;",
"margin-top: 2ex;"]
response.write(P(delta, _style="".join(style)))
delta = (datetime.now()-request.now).total_seconds()
delta = T('Page generated in %s seconds') % round(delta, 2)
=P(delta, BR(), request.now.strftime("%d %b %Y %H:%M"), _class="dbui-p")
=BR()
}}
\ No newline at end of file
{{
from datetime import datetime
from reporting_tools import format_publication
response.write(BR())
......@@ -50,9 +51,13 @@
#
=BR()
if mylist.footer_flag and request.env.request_method == 'POST':
html_url = A("url", _href=selector.repr_url(), _target="_blank")
=P(T("Direct access to the table: "), html_url, _class="my-p")
=P(request.now.strftime("%d %b %Y %H:%M"), _class="my-p")
delta = (datetime.now()-request.now).total_seconds()
delta = T('Page generated in %s seconds') % round(delta, 2)
=P(delta, BR(), request.now.strftime("%d %b %Y %H:%M"), _class="dbui-p")
=BR()
pass
}}
......@@ -11,6 +11,7 @@
# - Title and DIV block
#
#--------------------------------------------------------------------------
from datetime import datetime
#
# unique identifier for the DIV block associated to the grid
......@@ -25,18 +26,13 @@
response.write(DIV(_id=divgrid))
#
# The footer
# The footer, procesing time for the request
#
# Add the URL providing a direct access to this list.
# The application use the POST method will a user will use the GET one.
# Display the URL only in the first case.
#
if request.env.request_method == 'POST':
html_url = A("url", _href=selector.repr_url(), _target='_blank')
=P(T("Direct access to the table: "), html_url, _class="dbui-p")
=P(request.now.strftime("%d %b %Y %H:%M"), _class="dbui-p")
=BR()
pass
delta = (datetime.now()-request.now).total_seconds()
delta = T('Page generated in %s seconds') % round(delta, 2)
=P(delta, BR(), request.now.strftime("%d %b %Y %H:%M"), _class="dbui-p")
=BR()
}}
<script type="text/javascript">
......
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