Files
gitea-pages/main.py
2025-10-08 13:28:22 +02:00

15 lines
476 B
Python

def define_env(env):
"""
This is the hook function for the variables, macros and filters.
"""
@env.macro
def ScheduleTableHead():
code = '''| <div style="width:110px">**Time**</div> | **Machine State** | **Description** | <div style="width:90px"> **Contact**</div> |
| :- | :- |:- |:- |'''
return code
@env.macro
def ElogOP(nr):
code = '[{:}](https://elog-gfa.psi.ch/SLS/{:}) |'.format(nr)
return code