Project

General

Profile

Download (1.44 KB) Statistics
| Branch: | Tag: | Revision:

root / corbo / templates / corbo / announce_view.html @ d0bd7a5a

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
{% endblock %}
16
{% block content %}
17
<div class="announce_block">
18
<div class="announce_preview">
19
  {{ object.text|safe }}
20
</div>
21

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