0002-templates-change-scope-of-actions-blocks-44157.patch
chrono/manager/templates/chrono/manager_agenda_month_view.html | ||
---|---|---|
22 | 22 |
<a href="{{ view.get_next_month_url }}">→</a> |
23 | 23 |
</h2> |
24 | 24 |
<span class="actions"> |
25 |
{% block actions %} |
|
25 | 26 |
{% if user_can_manage %} |
26 | 27 |
<a href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Settings' %}</a> |
27 | 28 |
{% endif %} |
28 | 29 |
<a href="" onclick="window.print()">{% trans 'Print' %}</a> |
29 |
{% block actions %}{% endblock %}
|
|
30 |
{% endblock %} |
|
30 | 31 |
</span> |
31 | 32 |
{% endblock %} |
chrono/manager/templates/chrono/manager_agenda_open_events.html | ||
---|---|---|
9 | 9 |
{% endblock %} |
10 | 10 | |
11 | 11 |
{% block actions %} |
12 |
{{ block.super }} |
|
12 | 13 |
<a href="{% url 'chrono-manager-agenda-month-redirect-view' pk=agenda.pk %}">{% trans 'Month view' %}</a> |
13 | 14 |
{% endblock %} |
14 | 15 |
chrono/manager/templates/chrono/manager_agenda_view.html | ||
---|---|---|
9 | 9 |
<h2>{{ object.label }}</h2> |
10 | 10 |
{% if user_can_manage %} |
11 | 11 |
<span class="actions"> |
12 |
{% block actions %} |
|
12 | 13 |
<a href="{% url 'chrono-manager-agenda-settings' pk=object.id %}">{% trans 'Settings' %}</a> |
13 |
{% block actions %}{% endblock %}
|
|
14 |
{% endblock %} |
|
14 | 15 |
</span> |
15 | 16 |
{% endif %} |
16 | 17 |
{% endblock %} |
chrono/manager/templates/chrono/manager_meetings_agenda_month_view.html | ||
---|---|---|
2 | 2 |
{% load i18n %} |
3 | 3 | |
4 | 4 |
{% block actions %} |
5 |
{{ block.super }} |
|
5 | 6 |
<a href="{% url 'chrono-manager-agenda-day-view' pk=agenda.id year=view.date|date:"Y" month=view.date|date:"m" day=view.date|date:"d" %}">{% trans 'Day view' %}</a> |
6 | 7 |
{% endblock %} |
7 | 8 | |
8 |
- |