select_experiment: move links to instruments to top

This commit is contained in:
2025-05-23 13:50:21 +02:00
parent be404b625b
commit a6ec455563

View File

@ -357,6 +357,12 @@ a {
'''] ''']
ONEMONTH = 30 * 24 * 3600 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>&nbsp;\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 class prev: # just a namesapce
title = None title = None
legend = None legend = None
@ -433,11 +439,6 @@ a {
if timerange: if timerange:
out.append(f'<h3><a href="/select_experiment?time=all">earlier dates</a></h3><br>') out.append(f'<h3><a href="/select_experiment?time=all">earlier dates</a></h3><br>')
out.append('</table>') 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>&nbsp;\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>', '']) out.extend(['</body></html>', ''])
except Exception as e: except Exception as e: