Files
gitea-pages/main.py
2025-10-15 02:01:48 +02:00

20 lines
641 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 = '[OP-Log {:}](https://elog-gfa.psi.ch/SLS/{:}) |'.format(nr, nr)
return code
@env.macro
def ElogDEV(nr):
code = '[Dev-Log {:}](https://elog-gfa.psi.ch/SLS+Development/{:}) |'.format(nr, nr)
return code