kb: fix breadcrumb elements in page view/edit/history (#8470)

This commit is contained in:
Frédéric Péters 2015-10-29 10:12:50 +01:00
parent 1a64b967a7
commit 5376f1553f
3 changed files with 22 additions and 2 deletions

View File

@ -8,6 +8,11 @@
<a href="{% url 'kb-page-edit' slug=object.slug %}">{% trans 'Edit' %}</a>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'kb-page-view' slug=object.slug %}">{{object.title}}</a>
{% endblock %}
{% block content %}
{{ object.content|safe }}

View File

@ -1,4 +1,4 @@
{% extends "kb/base.html" %}
{% extends "kb/page_detail.html" %}
{% load i18n %}
{% block appbar %}
@ -9,6 +9,16 @@
{% endif %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object.id %}
<a href=".">{% trans 'Edit Page' %}</a>
{% else %}
<a href=".">{% trans 'New Page' %}</a>
{% endif %}
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">

View File

@ -1,4 +1,4 @@
{% extends "kb/base.html" %}
{% extends "kb/page_detail.html" %}
{% load i18n %}
{% block appbar %}
@ -6,6 +6,11 @@
<a href="{% url 'kb-page-view' slug=object.slug %}">{% trans 'Back to page' %}</a>
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
<a href=".">{% trans 'History' %}</a>
{% endblock %}
{% block content %}
<ul>