This commit is contained in:
2025-07-10 22:42:04 +02:00
parent 1cc4db4943
commit ee8220f059
4 changed files with 69 additions and 58 deletions

View File

@ -6,7 +6,15 @@
<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 class="d-flex">
<small class="text-muted" style="flex-grow:1">Projet : {{ issue.redmine.project.name }} • Tracker : {{ issue.redmine.tracker.name }}</small>
{% for field in issue.redmine.custom_fields %}
{% if field.id==11 and field.value!="" %}
<small class="text-muted"><strong>{{ field.name }} =</strong> <a href="{{field.value}}" target="_blank">{{field.value|split('/')|last}}</a></small>
{% endif %}
{% endfor %}
</div>
</div>
<div class="issueDescription card-body" style="height:500px;overflow-y:auto">
@ -40,40 +48,43 @@
<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>
<strong>Affecté à =</strong> {{(issue.redmine.assigned_to is defined?issue.redmine.assigned_to.name:'')}}<br>
</div>
</div>
<div>
{% for field in issue.redmine.custom_fields %}
{% if field.id==32 %}
<hr>
<strong>{{ field.name }} </strong><br>
{{ field.value|textile_to_html|raw }}<br>
{% endif %}
{% endfor %}
</div>
{% if issue.redmine.description %}
<div class="mb-3">
<hr>
<strong>Description :</strong>
<p>{{ issue.redmine.description|textile_to_html|raw }}</p>
<hr>
</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 %}
{% for journal in issue.redmine.journals %}
{% if journal.notes != "" %}
<div class="card">
<div class="card-header">
<strong>Auteur =</strong> {{journal.user.name}}</strong><br>
<small class="text-muted">Créé le =</strong>{{ journal.created_on|date('d/m/Y H:i') }}</small>
</div>
<div class="card-body">
{{ journal.notes |textile_to_html|raw }}
</div>
</div>
{% endif %}
{% endfor %}
<hr>
{{dump(issue)}}
<br><br>