mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-09 03:16:25 +00:00
Affichage propre d'un ticket simple
This commit is contained in:
parent
a0293a11b3
commit
790b43ccc3
2 changed files with 19 additions and 1 deletions
|
@ -62,6 +62,7 @@ DJANGO_CONTRIB_APPS = (
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
'django.contrib.humanize',
|
||||||
)
|
)
|
||||||
EXTERNAL_CONTRIB_APPS = (
|
EXTERNAL_CONTRIB_APPS = (
|
||||||
'bootstrap3',
|
'bootstrap3',
|
||||||
|
|
|
@ -25,11 +25,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load humanize %}
|
||||||
|
|
||||||
{% block title %}{% trans "Tickets" %}{% endblock %}
|
{% block title %}{% trans "Tickets" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue