82 lines
4.0 KiB
Twig
82 lines
4.0 KiB
Twig
<div class="card mb-3">
|
|
<div class="card-header">
|
|
<div class="mb-0 d-flex" style="align-items:baseline">
|
|
<h5 style="flex-grow:1">#{{ issue.redmine.id }} = {{ issue.redmine.subject }}</h5>
|
|
<a href="{{redmineUrl}}/issues/{{issue.id}}" target="_blank" class="btn btn-primary"><i class="fas fa-eye"></i></a>
|
|
<div class="btn btn-secondary" onClick="hideIssue()"><i class="fas fa-window-close"></i></div>
|
|
|
|
</div>
|
|
<small class="text-muted">Projet : {{ issue.redmine.project.name }} • Tracker : {{ issue.redmine.tracker.name }}</small>
|
|
</div>
|
|
|
|
<div class="issueDescription card-body" style="height:500px;overflow-y:auto">
|
|
<div class="d-flex">
|
|
<div class="mb-3" style="flex-grow:0.5">
|
|
<strong>Tracker =</strong> {{issue.redmine.tracker.name}}<br>
|
|
<strong>Catégorie =</strong> {{issue.redmine.category is defined?issue.redmine.category.name:''}}<br>
|
|
<strong>Statut =</strong> {{ issue.redmine.status.name }}<br>
|
|
<strong>Priorité =</strong> {{ issue.redmine.priority.name }}<br><br>
|
|
|
|
{% set sprintName = null %}
|
|
{% for sprint in issue.project.redmine.sprints %}
|
|
{% if sprint.id == issue.rowsprint %}
|
|
{% set sprintName = sprint.name %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if sprintName %}
|
|
<strong>Sprint =</strong> {{sprintName}} (Position {{ issue.redmine.sprint.position }})<br>
|
|
{% else %}
|
|
<strong>Sprint =</strong> Aucun (Position {{ issue.redmine.sprint.position }})<br>
|
|
{% endif %}
|
|
<strong>Version Cible =</strong> {{(issue.redmine.fixed_version is defined?issue.redmine.fixed_version.name:'Aucune')}}<br>
|
|
<strong>Story Point =</strong> {{issue.redmine.sprint.story_points}}<br>
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Auteur =</strong> {{ issue.redmine.author.name }}<br>
|
|
<strong>Progression =</strong> {{ issue.redmine.done_ratio }}%<br>
|
|
<strong>Créé le =</strong>{{ issue.redmine.created_on|date('d/m/Y H:i') }}<br>
|
|
<strong>Mis à jour le =</strong>{{ issue.redmine.updated_on|date('d/m/Y H:i') }}<br>
|
|
<strong>Date de début =</strong> {{ issue.redmine.start_date|date('d/m/Y') }}<br>
|
|
<strong>Date de fin =</strong> {{ issue.redmine.due_date|date('d/m/Y') }}<br><br>
|
|
|
|
<strong>Affecté à =</strong> {{(issue.redmine.assigned_to is defined?issue.redmine.assigned_to.name:'')}}<br>
|
|
</div>
|
|
</div>
|
|
|
|
{% if issue.redmine.description %}
|
|
<div class="mb-3">
|
|
<hr>
|
|
<strong>Description :</strong>
|
|
<p>{{ issue.redmine.description|textile_to_html|raw }}</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if issue.redmine.custom_fields|length %}
|
|
<div class="mb-3">
|
|
<hr>
|
|
<strong>Champs personnalisés :</strong>
|
|
<ul class="list-group">
|
|
{% for field in issue.redmine.custom_fields %}
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
{{ field.name }}
|
|
<span class="text-muted">
|
|
{% if field.multiple is defined and field.multiple and field.value is iterable %}
|
|
{{ field.value|join(', ') }}
|
|
{% elseif field.value %}
|
|
{{ field.value }}
|
|
{% else %}
|
|
<em>—</em>
|
|
{% endif %}
|
|
</span>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{{dump(issue)}}
|
|
<br><br>
|
|
</div>
|
|
</div>
|