Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
aa86c7d2
Commit
aa86c7d2
authored
Apr 11, 2017
by
LE GAC Renaud
Browse files
Polish views for lists, metris and graphs.
parent
dd6e98f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
20 deletions
+19
-20
languages/fr-fr.py
languages/fr-fr.py
+1
-0
views/graphs/index.html
views/graphs/index.html
+5
-8
views/lists/index.html
views/lists/index.html
+6
-1
views/metrics/index.html
views/metrics/index.html
+7
-11
No files found.
languages/fr-fr.py
View file @
aa86c7d2
...
...
@@ -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'
,
...
...
views/graphs/index.html
View file @
aa86c7d2
...
...
@@ -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
views/lists/index.html
View file @
aa86c7d2
{{
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
}}
views/metrics/index.html
View file @
aa86c7d2
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment