Browse Source

Affichage propre d'un ticket simple

tickets
Grizzly 7 years ago
committed by Gabriel Detraz
parent
commit
790b43ccc3
  1. 1
      re2o/settings.py
  2. 19
      tickets/templates/tickets/aff_ticket.html

1
re2o/settings.py

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

19
tickets/templates/tickets/aff_ticket.html

@ -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 %}

Loading…
Cancel
Save