mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
14 lines
375 B
Python
14 lines
375 B
Python
|
from flask import request, url_for
|
||
|
from app.models import Job
|
||
|
|
||
|
|
||
|
def job_dynamic_list_constructor():
|
||
|
job_id = request.view_args['job_id']
|
||
|
job = Job.query.get(job_id)
|
||
|
return [
|
||
|
{
|
||
|
'text': f'<i class="nopaque-icons left service-icons" data-service="{job.service}"></i>{job.title}',
|
||
|
'url': url_for('.job', job_id=job_id)
|
||
|
}
|
||
|
]
|