Projet

Général

Profil

Télécharger (1,56 ko) Statistiques
| Branche: | Tag: | Révision:

root / corbo / templates / corbo / announce_view.html @ 8e8b10ae

1
{% extends "corbo/announce_list.html" %}
2
{% load i18n %}
3

    
4
{% block breadcrumb %}
5
{{ block.super }}
6
<a href='{% url "view_category" slug=object.category.slug %}'>{{ object.category }}</a>
7
{% endblock %}
8

    
9

    
10
{% block appbar %}
11
<h2>{{ object.title }}</h2>
12
<a href="{% url 'delete_announce' pk=object.pk %}" rel="popup">{% trans 'Delete' %}</a>
13
<a href="{% url 'edit_announce' pk=object.pk %}">{% trans 'Edit' %}</a>
14
<a href="{% url 'email_announce' pk=object.pk %}" rel="popup">{% trans 'Send test email' %}</a>
15
{% if sms_enabled %}
16
<a href="{% url 'sms_announce' pk=object.pk %}" rel="popup">{% trans 'Send test SMS' %}</a>
17
{% endif %}
18
{% endblock %}
19
{% block content %}
20
<div class="announce_block">
21
<div class="announce_preview">
22
  {{ object.text|safe }}
23
</div>
24

    
25
{% if object.publication_time or object.expiration_time or broadcasts %}
26
<div class="announce_dashboard">
27
  {% if object.publication_time %}
28
  <p>
29
    <strong>{% trans "Publication" %}</strong> {{ announce.publication_time|date:'DATETIME_FORMAT' }}
30
  </p>
31
  {% endif %}
32
  {% if object.expiration_time %}
33
  <p>
34
    <strong>{% trans "Expiration" %}</strong> {{ announce.expiration_time|date:'DATETIME_FORMAT' }}
35
  </p>
36
  {% endif %}
37
  {% if broadcasts %}
38
  {% for broadcast in broadcasts %}
39
  <p>
40
    <strong>{% trans "Sent" %}</strong> {{ broadcast.deliver_time|date:'DATETIME_FORMAT' }}
41
    {% blocktrans count delivers=broadcast.delivery_count %}
42
    to {{ delivers }} destination
43
    {%  plural %}
44
    to {{ delivers }} destinations
45
    {% endblocktrans %}
46
  </p>
47
  {% endfor %}
48
  {% endif %}
49
</div>
50
{% endif %}
51
</div>
52
{% endblock %}
(5-5/15)