{% extends 'bridge/base.html' %} {% comment "License" %} % Copyright (c) 2019 ISP RAS (http://www.ispras.ru) % Ivannikov Institute for System Programming of the Russian Academy of Sciences % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. {% endcomment %} {% load i18n %} {% load humanize %} {% load tz %} {% load static %} {% load compress %} {% block head_block %} {% compress js file job %} {% endcompress %} {% endblock %} {% block title %}{% trans 'Job' %}{% endblock %} {% block body_block %}
{# Job menu #} {# Job data table #} {% if object.author %} {% endif %} {% if parents %} {% endif %}
{{ object.name }} {% if preset_changed %}
({% trans 'Preset files for this job were changed' %}){% endif %}
{% trans 'Identifier' %}{{ object.identifier }}
{% trans 'Created by' %} {{ object.author.get_full_name }}
{% trans 'Creation date' %} {% if user.data_format == 'hum' %}{{ object.creation_date|naturaltime }}{% else %}{{ object.creation_date }}{% endif %}
{% trans 'Job parents' %} {% include 'jobs/parents.html' with parents=parents %}

{# User roles #}
{% trans 'Job access' %}
{% if user_roles.count %}
    {% for ur in user_roles %} {% if ur.user == user %}
  • {% trans 'Your role for the job' %}: {{ ur.get_role_display }}
  • {% else %}
  • {{ ur.user.get_full_name }}: {{ ur.get_role_display }}
  • {% endif %} {% endfor %}
{% endif %}

{% blocktrans with global_role=object.get_global_role_display %}Other users have role "{{ global_role }}" for this job{% endblocktrans %}

{# Decisions list #} {% if decisions|length %}
{% trans 'Job versions' %}
{% include 'jobs/decision-list.html' with decisions=decisions with_checkbox=True %}
{% else %}
{% trans "The job don't have decisions yet" %}
{% endif %}
{# Warning modal for job remove #} {# Warning modal for decisions remove #} {% endblock %}