mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +00:00
Change title settings
This commit is contained in:
parent
de699e6ccf
commit
1cbea56ba9
@ -14,8 +14,7 @@ def job(job_id):
|
||||
job = Job.query.get_or_404(job_id)
|
||||
if not (job.creator == current_user or current_user.is_administrator()):
|
||||
abort(403)
|
||||
return render_template('jobs/job.html.j2', job=job,
|
||||
title='<i class="material-icons left service" data-service="{service}" style="font-size: inherit;"></i>Job'.format(service=job.service))
|
||||
return render_template('jobs/job.html.j2', job=job, title='Job')
|
||||
|
||||
|
||||
@jobs.route('/<int:job_id>/delete')
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
{% set full_width = False %}
|
||||
{% set roadmap = False %}
|
||||
{% set title_override = '<i class="material-icons left service" data-service="{service}" style="font-size: inherit;"></i>Job'.format(service=job.service) %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="col s12 m4">
|
||||
|
@ -94,7 +94,15 @@
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h2>{% if title %}{{ title }}{% else %}Unnamed page{% endif %}</h2>
|
||||
<h2>
|
||||
{% if title_override %}
|
||||
{{ title_override }}
|
||||
{% elif title %}
|
||||
{{ title }}
|
||||
{% else %}
|
||||
Unnamed page
|
||||
{% endif %}
|
||||
</h2>
|
||||
</div>
|
||||
{% if roadmap %}
|
||||
<div class="col s12 m9 l10">
|
||||
|
Loading…
Reference in New Issue
Block a user