8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-12 09:13:08 +00:00

Affichage propre d'un ticket simple

This commit is contained in:
Grizzly 2019-07-10 12:24:06 +00:00 committed by Gabriel Detraz
parent a0293a11b3
commit 790b43ccc3
2 changed files with 19 additions and 1 deletions

View file

@ -62,6 +62,7 @@ DJANGO_CONTRIB_APPS = (
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
)
EXTERNAL_CONTRIB_APPS = (
'bootstrap3',

View file

@ -25,11 +25,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load i18n %}
{% load humanize %}
{% block title %}{% trans "Tickets" %}{% endblock %}
{% block content %}
{{ ticket.title }}
<h2> Ticket #{{ticket.id}} </h2>
<div class="panel panel-default">
<div class="panel-heading">
{% trans "Opened by" %}
<a href="{% url 'users:profil' ticket.user.id%}">
{{ ticket.user.get_full_name }}
</a>
{{ ticket.date | naturalday}}.
</div>
<div class="panel-body">
<p><b>{% trans "Title:" %}</b> {{ticket.title}}</p>
<p><b>{% trans "Description" %}</b> {{ ticket.description }}</p>
</div>
</div>
{% endblock %}