Change title settings

This commit is contained in:
Patrick Jentsch 2020-02-12 15:57:31 +01:00
parent de699e6ccf
commit 1cbea56ba9
3 changed files with 11 additions and 3 deletions

View File

@ -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')

View File

@ -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">

View File

@ -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">