select_experiment: move links to instruments to top
This commit is contained in:
11
webserver.py
11
webserver.py
@ -357,6 +357,12 @@ a {
|
||||
''']
|
||||
ONEMONTH = 30 * 24 * 3600
|
||||
|
||||
out.append('<br><i>direct link to instruments:</i><br>')
|
||||
out.extend([f'<a href="http://{ins}.psi.ch:{port}/">{ins.upper()}</a> \n'
|
||||
for ins, port in instruments.items()])
|
||||
if server.db.has_local:
|
||||
out.append('<h3><a href="http://linse-c.psi.ch:8888/">linse-c (central)</a></h3>')
|
||||
|
||||
class prev: # just a namesapce
|
||||
title = None
|
||||
legend = None
|
||||
@ -433,11 +439,6 @@ a {
|
||||
if timerange:
|
||||
out.append(f'<h3><a href="/select_experiment?time=all">earlier dates</a></h3><br>')
|
||||
out.append('</table>')
|
||||
out.append('<br><i>direct link to instruments:</i><br>')
|
||||
out.extend([f'<a href="http://{ins}.psi.ch:{port}/">{ins.upper()}</a> \n'
|
||||
for ins, port in instruments.items()])
|
||||
if server.db.has_local:
|
||||
out.append('<h3><a href="http://linse-c.psi.ch:8888/">linse-c (central)</a></h3>')
|
||||
|
||||
out.extend(['</body></html>', ''])
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user